diff options
author | Chris Ball <cjb@laptop.org> | 2011-04-13 23:49:45 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-05-24 21:02:01 -0400 |
commit | 24f5b53ba076e983bc64fa48534ca795d7813d51 (patch) | |
tree | 6ae546b6443ec6f28694a9688fdd79da633c57b7 /drivers/mmc/core/host.h | |
parent | a61ad2b49bfce94dfddce828cd9222e4b9e7825b (diff) | |
download | kernel_samsung_tuna-24f5b53ba076e983bc64fa48534ca795d7813d51.zip kernel_samsung_tuna-24f5b53ba076e983bc64fa48534ca795d7813d51.tar.gz kernel_samsung_tuna-24f5b53ba076e983bc64fa48534ca795d7813d51.tar.bz2 |
mmc: initialize struct mmc_request at declaration time
Converts from:
struct mmc_request mrq;
memset(&mrq, 0, sizeof(struct mmc_request));
to:
struct mmc_request mrq = {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 'drivers/mmc/core/host.h')
0 files changed, 0 insertions, 0 deletions