diff options
author | 2011-04-13 23:46:05 -0400 | |
---|---|---|
committer | 2011-05-24 21:01:56 -0400 | |
commit | a61ad2b49bfce94dfddce828cd9222e4b9e7825b (patch) | |
tree | 36f93e61adc7c7d7523c78c78c3df1e75fae5e33 /include/linux/mmc/mmc.h | |
parent | mmc: initialize struct mmc_command at declaration time (diff) | |
download | wireguard-linux-a61ad2b49bfce94dfddce828cd9222e4b9e7825b.tar.xz wireguard-linux-a61ad2b49bfce94dfddce828cd9222e4b9e7825b.zip |
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: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'include/linux/mmc/mmc.h')
0 files changed, 0 insertions, 0 deletions