summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/scsi/mvsas
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/scsi/mvsas')
-rw-r--r--kernel/drivers/scsi/mvsas/mv_94xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/scsi/mvsas/mv_94xx.c b/kernel/drivers/scsi/mvsas/mv_94xx.c
index 9270d15ff..7353ac8d0 100644
--- a/kernel/drivers/scsi/mvsas/mv_94xx.c
+++ b/kernel/drivers/scsi/mvsas/mv_94xx.c
@@ -621,7 +621,7 @@ static void mvs_94xx_command_active(struct mvs_info *mvi, u32 slot_idx)
{
u32 tmp;
tmp = mvs_cr32(mvi, MVS_COMMAND_ACTIVE+(slot_idx >> 3));
- if (tmp && 1 << (slot_idx % 32)) {
+ if (tmp & 1 << (slot_idx % 32)) {
mv_printk("command active %08X, slot [%x].\n", tmp, slot_idx);
mvs_cw32(mvi, MVS_COMMAND_ACTIVE + (slot_idx >> 3),
1 << (slot_idx % 32));