diff options
author | Venkatraman S <svenkatr@ti.com> | 2012-04-13 17:54:13 +0530 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-05-09 10:10:46 -0400 |
commit | b41b6f1d1cb6a16c737c4699d2815112ec21faa6 (patch) | |
tree | f04425a31d0ea619c67225bad8f49e93fee7eb18 /drivers/mmc | |
parent | 1b50f5f392e31ab41a272ed3b438f603c09be3f0 (diff) | |
download | op-kernel-dev-b41b6f1d1cb6a16c737c4699d2815112ec21faa6.zip op-kernel-dev-b41b6f1d1cb6a16c737c4699d2815112ec21faa6.tar.gz |
mmc: queue: remove redundant memsets
Not needed to memset, as they are pointers and are assigned
to proper values in the next line anyway.
Signed-off-by: Venkatraman S <svenkatr@ti.com>
Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/card/queue.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c index 49af43c..e360a97 100644 --- a/drivers/mmc/card/queue.c +++ b/drivers/mmc/card/queue.c @@ -175,8 +175,6 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, if (!mq->queue) return -ENOMEM; - memset(&mq->mqrq_cur, 0, sizeof(mq->mqrq_cur)); - memset(&mq->mqrq_prev, 0, sizeof(mq->mqrq_prev)); mq->mqrq_cur = mqrq_cur; mq->mqrq_prev = mqrq_prev; mq->queue->queuedata = mq; |