diff options
author | 2011-04-13 23:40:30 -0400 | |
---|---|---|
committer | 2011-05-24 21:01:52 -0400 | |
commit | 1278dba167f01bb3c6626d16450d31129d041087 (patch) | |
tree | 6fb3af716e5437cb558ae37fd8a58db23b9b173e /include/linux/mmc | |
parent | mmc: card: Fix use of uninitialized data in mmc_blk_issue_rw_rq. (diff) | |
download | wireguard-linux-1278dba167f01bb3c6626d16450d31129d041087.tar.xz wireguard-linux-1278dba167f01bb3c6626d16450d31129d041087.zip |
mmc: initialize struct mmc_command at declaration time
Converts from:
struct mmc_command cmd;
memset(&cmd, 0, sizeof(struct mmc_command));
to:
struct mmc_command cmd = {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')
0 files changed, 0 insertions, 0 deletions