From: Venkatraman S Date: Fri, 13 Apr 2012 12:24:13 +0000 (+0530) Subject: mmc: queue: remove redundant memsets X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=b41b6f1d1cb6a16c737c4699d2815112ec21faa6;p=deliverable%2Flinux.git 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 Reviewed-by: Namjae Jeon Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c index 49af43c97323..e360a979857d 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;