S2io: two branches the same in wait_for_cmd_complete()
Subsystems (2)
From: Ramkrishna Vepa <[email protected]>
Date: 19 Jan 2010 13:20:09 -0800
Quoted 5 lines
Fix check to verify if a register bit is set. We have not hit this bug because
wait_for_cmd_complete()is always called withS2IO_BIT_RESET. Reported by Roel Kluin <[email protected]>.Signed-off-by Ram Vepa <[email protected]>
Applied, thanks.
PATCH 1/1 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 <[email protected]>.
Signed-off-by Ram Vepa <[email protected]>
---
drivers/net/s2io.c +1 -1
@@ -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 ; }