Files
linux/drivers/scsi/arcmsr
Dan Carpenter 6ad819b06d [SCSI] arcmsr: fix misuse of | instead of &
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]>
2012-07-20 08:58:31 +01:00
..
…