Skip to content

Commit

Permalink
[SCSI] aic7xxx_old: fix accidental logic reversal
Browse files Browse the repository at this point in the history
Commit bbfbbbc accidentally reversed
the logic of this NULL check.

Spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
  • Loading branch information
AdrianBunk authored and James Bottomley committed Oct 18, 2007
1 parent 875baf3 commit 4135f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/aic7xxx_old.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4135f9d

Please sign in to comment.