]> err.no Git - linux-2.6/commitdiff
[SCSI] cciss: kfree(NULL) is legal
authorAndrew Morton <akpm@osdl.org>
Thu, 5 Jan 2006 02:30:03 +0000 (18:30 -0800)
committer <jejb@mulgrave.il.steeleye.com> <>
Tue, 28 Feb 2006 04:55:06 +0000 (22:55 -0600)
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/block/cciss.c

index 0d65394707dbd5653057cfe1dbca6c94fdd98c47..b9c786ee6fad21fee1aa32db38369cfc37bd2266 100644 (file)
@@ -3251,8 +3251,7 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,
 
 clean4:
 #ifdef CONFIG_CISS_SCSI_TAPE
-       if(hba[i]->scsi_rejects.complete)
-               kfree(hba[i]->scsi_rejects.complete);
+       kfree(hba[i]->scsi_rejects.complete);
 #endif
        kfree(hba[i]->cmd_pool_bits);
        if(hba[i]->cmd_pool)