summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx_old.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-10-18 12:52:07 +0200
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-18 08:40:42 -0400
commit4135f9d28af912d541c0c32f1bc2ee6da23306eb (patch)
treeb250db57235c8ed8d70df289ef97fc47b46c89f7 /drivers/scsi/aic7xxx_old.c
parent875baf3cbc0f11009ef5ca33c78210d265c8d779 (diff)
downloadlinux-4135f9d28af912d541c0c32f1bc2ee6da23306eb.tar.gz
linux-4135f9d28af912d541c0c32f1bc2ee6da23306eb.tar.bz2
linux-4135f9d28af912d541c0c32f1bc2ee6da23306eb.zip
[SCSI] aic7xxx_old: fix accidental logic reversal
Commit bbfbbbc1182f8b44c8cc4c99f4a3f3a512149022 accidentally reversed the logic of this NULL check. Spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aic7xxx_old.c')
-rw-r--r--drivers/scsi/aic7xxx_old.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/aic7xxx_old.c b/drivers/scsi/aic7xxx_old.c
index 4025608d6964..8f8db5f0aef7 100644
--- a/drivers/scsi/aic7xxx_old.c
+++ b/drivers/scsi/aic7xxx_old.c
@@ -8417,7 +8417,7 @@ aic7xxx_alloc(struct scsi_host_template *sht, struct aic7xxx_host *temp)
p->host = host;
p->scb_data = kzalloc(sizeof(scb_data_type), GFP_ATOMIC);
- if (!p->scb_data)
+ if (p->scb_data)
{
scbq_init (&p->scb_data->free_scbs);
}