mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 18:42:21 +00:00
ARCMSR_ARC1880_DiagWrite_ENABLE is 0x00000080 so (x | 0x00000080) is never zero. The intent here was to test that loop until ARCMSR_ARC1880_DiagWrite_ENABLE was turned on, but because the test was wrong, we would do five loops regardless of whether it succeed or not. Also I simplified the condition a little by removing the unused assignement. Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Nick Cheng <[email protected]> Signed-off-by: James Bottomley <[email protected]>