Skip to content

Commit

Permalink
memstick: make sure number of command retries is exactly as specified
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Dubov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
oakad authored and Linus Torvalds committed Mar 11, 2008
1 parent d114ad5 commit 29196dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/memstick/core/memstick.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 29196dc

Please sign in to comment.