]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sd: clean up redundant memset
authorMark Asselstine <asselsm@gmail.com>
Wed, 26 May 2010 21:41:58 +0000 (14:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 May 2010 16:12:39 +0000 (09:12 -0700)
commita55228a531666a41a1bf814e9363b226eb5b46ec
tree078c1ad4c8c387def4e5f853fe8ff1e58316b1f0
parent96ea27e4337c97b2c55e76d9e3379dc98fc18a21
mmc: sd: clean up redundant memset

The clearing of mrq via a memset at the top of the for loop in
mmc_wait_for_app_cmd() is not required as mrq is not used and there is
another clearing of mrq just below.  We remove the first memset since if
the initial tests in the for loop fail the memset is not required.

Signed-off-by: Mark Asselstine <asselsm@gmail.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mmc/core/sd_ops.c