]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: initialize struct mmc_command at declaration time
authorChris Ball <cjb@laptop.org>
Thu, 14 Apr 2011 03:40:30 +0000 (23:40 -0400)
committerChris Ball <cjb@laptop.org>
Wed, 25 May 2011 01:01:52 +0000 (21:01 -0400)
commit875ddb4616ed8bdf1730b83ed7b94dbf4a169137
tree6fb3af716e5437cb558ae37fd8a58db23b9b173e
parenta09896d3fdaab67516387e75f0b0ffc96f91d79b
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>
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