Skip to content
Commit a61ad2b4 authored by Chris Ball's avatar Chris Ball
Browse files

mmc: initialize struct mmc_data at declaration time



Converts from:
	struct mmc_data data;
	memset(&data, 0, sizeof(struct mmc_data));

to:
	struct mmc_data data = {0};

because it's shorter, as performant, and easier to work out whether
initialization has happened.

Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 1278dba1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment