[SCSI] cciss: kfree(NULL) is legal
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
03fbcbcd57
commit
1acc0b0ba4
1 changed files with 1 additions and 2 deletions
|
@ -3251,7 +3251,6 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,
|
||||||
|
|
||||||
clean4:
|
clean4:
|
||||||
#ifdef CONFIG_CISS_SCSI_TAPE
|
#ifdef CONFIG_CISS_SCSI_TAPE
|
||||||
if(hba[i]->scsi_rejects.complete)
|
|
||||||
kfree(hba[i]->scsi_rejects.complete);
|
kfree(hba[i]->scsi_rejects.complete);
|
||||||
#endif
|
#endif
|
||||||
kfree(hba[i]->cmd_pool_bits);
|
kfree(hba[i]->cmd_pool_bits);
|
||||||
|
|
Loading…
Add table
Reference in a new issue