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>
This commit is contained in:
Mark Asselstine 2010-05-26 14:41:58 -07:00 коммит произвёл Linus Torvalds
Родитель bbce5802af
Коммит 6dd6bca3fb
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -79,8 +79,6 @@ int mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card,
* we cannot use the retries field in mmc_command. * we cannot use the retries field in mmc_command.
*/ */
for (i = 0;i <= retries;i++) { for (i = 0;i <= retries;i++) {
memset(&mrq, 0, sizeof(struct mmc_request));
err = mmc_app_cmd(host, card); err = mmc_app_cmd(host, card);
if (err) { if (err) {
/* no point in retrying; no APP commands allowed */ /* no point in retrying; no APP commands allowed */