Commit 2d146eb1 authored by Ram Vepa's avatar Ram Vepa Committed by David S. Miller
Browse files

S2io: two branches the same in wait_for_cmd_complete()



Fix check to verify if a register bit is set. We have not hit this bug because
wait_for_cmd_complete() is always called with S2IO_BIT_RESET. 
Reported by Roel Kluin <roel.kluin@gmail.com>.

Signed-off-by: default avatarRam Vepa <ram.vepa@neterion.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dad48a4e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3421,7 +3421,7 @@ static int wait_for_cmd_complete(void __iomem *addr, u64 busy_bit,
				break;
			}
		} else {
			if (!(val64 & busy_bit)) {
			if (val64 & busy_bit) {
				ret = SUCCESS;
				break;
			}