aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/card/block.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/card/block.c')
-rw-r--r--drivers/mmc/card/block.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index fb387c803205..adf0ed3f2c08 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -259,7 +259,7 @@ static u32 mmc_sd_num_wr_blocks(struct mmc_card *card)
259 u32 result; 259 u32 result;
260 __be32 *blocks; 260 __be32 *blocks;
261 261
262 struct mmc_request mrq; 262 struct mmc_request mrq = {0};
263 struct mmc_command cmd = {0}; 263 struct mmc_command cmd = {0};
264 struct mmc_data data = {0}; 264 struct mmc_data data = {0};
265 unsigned int timeout_us; 265 unsigned int timeout_us;
@@ -300,8 +300,6 @@ static u32 mmc_sd_num_wr_blocks(struct mmc_card *card)
300 data.sg = &sg; 300 data.sg = &sg;
301 data.sg_len = 1; 301 data.sg_len = 1;
302 302
303 memset(&mrq, 0, sizeof(struct mmc_request));
304
305 mrq.cmd = &cmd; 303 mrq.cmd = &cmd;
306 mrq.data = &data; 304 mrq.data = &data;
307 305