Message ID | 20211124032314.35452-1-deng.changcheng@zte.com.cn |
---|---|
State | New |
Headers | show |
Series | scsi: dc395x: Use bitwise instead of arithmetic operator for flags | expand |
diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c index 9b8796c9e634..854236d550e8 100644 --- a/drivers/scsi/dc395x.c +++ b/drivers/scsi/dc395x.c @@ -1126,7 +1126,7 @@ static void reset_dev_param(struct AdapterCtlBlk *acb) list_for_each_entry(dcb, &acb->dcb_list, list) { u8 period_index; - dcb->sync_mode &= ~(SYNC_NEGO_DONE + WIDE_NEGO_DONE); + dcb->sync_mode &= ~(SYNC_NEGO_DONE | WIDE_NEGO_DONE); dcb->sync_period = 0; dcb->sync_offset = 0;