summaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi.h
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-06-09 12:10:19 +0300
committerJames Bottomley <JBottomley@Parallels.com>2012-07-20 08:58:31 +0100
commit6ad819b06ddf13a5a1d995eb26555903f6c3b71a (patch)
tree0464ebec1ee3af86517afff5911fb91897b03b58 /include/scsi/scsi.h
parent23f0bb47a4ec4c662b2bbf0221d6289e91b06ece (diff)
downloadlinux-6ad819b06ddf13a5a1d995eb26555903f6c3b71a.tar.bz2
[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 'include/scsi/scsi.h')
0 files changed, 0 insertions, 0 deletions