diff options
author | Alex Dubov <oakad@yahoo.com> | 2008-03-10 14:43:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-03-10 21:01:18 -0400 |
commit | 29196dc67e1b76ce84e25228783f6b8a3c48e9dd (patch) | |
tree | a007d8aca64c24851f8977239f3b044b93893bad /drivers/memstick/core | |
parent | d114ad54ffb020dc781b6159c1c2f391c6ec418f (diff) |
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/core')
-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) | |||
236 | rc = host->card->next_request(host->card, mrq); | 236 | rc = host->card->next_request(host->card, mrq); |
237 | 237 | ||
238 | if (!rc) | 238 | if (!rc) |
239 | host->retries = cmd_retries; | 239 | host->retries = cmd_retries > 1 ? cmd_retries - 1 : 1; |
240 | else | 240 | else |
241 | *mrq = NULL; | 241 | *mrq = NULL; |
242 | 242 | ||