diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-06-09 12:10:19 +0300 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-07-20 08:58:31 +0100 |
commit | 6ad819b06ddf13a5a1d995eb26555903f6c3b71a (patch) | |
tree | 0464ebec1ee3af86517afff5911fb91897b03b58 /drivers/scsi/device_handler | |
parent | 23f0bb47a4ec4c662b2bbf0221d6289e91b06ece (diff) |
[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 <dan.carpenter@oracle.com>
Acked-by: Nick Cheng <nick.cheng@areca.com.tw>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/device_handler')
0 files changed, 0 insertions, 0 deletions