]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
mmc: queue: remove redundant memsets
authorVenkatraman S <svenkatr@ti.com>
Fri, 13 Apr 2012 12:24:13 +0000 (17:54 +0530)
committerChris Ball <cjb@laptop.org>
Wed, 9 May 2012 14:10:46 +0000 (10:10 -0400)
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>
drivers/mmc/card/queue.c

index 49af43c97323648f05b9a64cda779d06727424b9..e360a979857d297e1468a7c9aa41b86a975a2f82 100644 (file)
@@ -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;