Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b41b6f1d authored by Venkatraman S's avatar Venkatraman S Committed by Chris Ball
Browse files

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: default avatarVenkatraman S <svenkatr@ti.com>
Reviewed-by: default avatarNamjae Jeon <linkinjeon@gmail.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 1b50f5f3
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;