mmc: initialize struct mmc_request at declaration time
authorChris Ball <cjb@laptop.org>
Thu, 14 Apr 2011 03:49:45 +0000 (23:49 -0400)
committerChris Ball <cjb@laptop.org>
Wed, 25 May 2011 01:02:01 +0000 (21:02 -0400)
commit24f5b53ba076e983bc64fa48534ca795d7813d51
tree6ae546b6443ec6f28694a9688fdd79da633c57b7
parenta61ad2b49bfce94dfddce828cd9222e4b9e7825b
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>
drivers/mmc/card/block.c
drivers/mmc/card/mmc_test.c
drivers/mmc/core/core.c
drivers/mmc/core/mmc_ops.c
drivers/mmc/core/sd_ops.c
drivers/mmc/core/sdio_ops.c