diff options
author | Alex Dubov <oakad@yahoo.com> | 2008-03-10 19:43:38 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-03-11 02:01:18 +0100 |
commit | 29196dc67e1b76ce84e25228783f6b8a3c48e9dd (patch) | |
tree | a007d8aca64c24851f8977239f3b044b93893bad /drivers/memstick | |
parent | memstick: add memstick_suspend/resume_host methods (diff) | |
download | linux-29196dc67e1b76ce84e25228783f6b8a3c48e9dd.tar.xz linux-29196dc67e1b76ce84e25228783f6b8a3c48e9dd.zip |
memstick: make sure number of command retries is exactly as specified
Signed-off-by: Alex Dubov <oakad@yahoo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/memstick')
-rw-r--r-- | drivers/memstick/core/memstick.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/memstick/core/memstick.c b/drivers/memstick/core/memstick.c index 3c97bac4e47b..decd6a49fd5a 100644 --- a/drivers/memstick/core/memstick.c +++ b/drivers/memstick/core/memstick.c @@ -236,7 +236,7 @@ int memstick_next_req(struct memstick_host *host, struct memstick_request **mrq) rc = host->card->next_request(host->card, mrq); if (!rc) - host->retries = cmd_retries; + host->retries = cmd_retries > 1 ? cmd_retries - 1 : 1; else *mrq = NULL; |