From 44b2383d6242ca742776136635ee60e9f0c3e34b Mon Sep 17 00:00:00 2001 From: John Levon Date: Wed, 26 Feb 2003 06:59:13 -0500 Subject: [PATCH] [PATCH] IPS driver typo Not tested, against 2.5.63 regards john --- drivers/scsi/ips.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c index b79ad61bb7a99..7ea6c8c85d0a4 100644 --- a/drivers/scsi/ips.c +++ b/drivers/scsi/ips.c @@ -2737,7 +2737,7 @@ ips_next(ips_ha_t *ha, int intr) { scb->dcdb.cmd_attribute = ips_command_direction[scb->scsi_cmd->cmnd[0]]; - if (!scb->dcdb.cmd_attribute & 0x3) + if (!(scb->dcdb.cmd_attribute & 0x3)) scb->dcdb.transfer_length = 0; if (scb->data_len >= IPS_MAX_XFER) { @@ -3315,7 +3315,7 @@ ips_done(ips_ha_t *ha, ips_scb_t *scb) { scb->dcdb.transfer_length = scb->data_len; scb->dcdb.cmd_attribute |= ips_command_direction[scb->scsi_cmd->cmnd[0]]; - if (!scb->dcdb.cmd_attribute & 0x3) + if (!(scb->dcdb.cmd_attribute & 0x3)) scb->dcdb.transfer_length = 0; if (scb->data_len >= IPS_MAX_XFER) { -- 2.53.0