Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29196dc6 authored by Alex Dubov's avatar Alex Dubov Committed by Linus Torvalds
Browse files

memstick: make sure number of command retries is exactly as specified

parent d114ad54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;