mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 19:06:14 +00:00
[SCSI] aic7xxx_old: fix accidental logic reversal
Commit bbfbbbc118
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>
This commit is contained in:
parent
875baf3cbc
commit
4135f9d28a
1 changed files with 1 additions and 1 deletions
|
@ -8417,7 +8417,7 @@ aic7xxx_alloc(struct scsi_host_template *sht, struct aic7xxx_host *temp)
|
||||||
p->host = host;
|
p->host = host;
|
||||||
|
|
||||||
p->scb_data = kzalloc(sizeof(scb_data_type), GFP_ATOMIC);
|
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);
|
scbq_init (&p->scb_data->free_scbs);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue