summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-01-04 18:30:03 -0800
committer <jejb@mulgrave.il.steeleye.com>2006-02-27 22:55:06 -0600
commit1acc0b0ba409dcf4909890fb33e0829f7fd400be (patch)
treef4590439d51664e68745a8f427fae91b75b520ee /drivers/block
parent03fbcbcd57e9d1bc5a4fe6a81c1845e7365ddabc (diff)
[SCSI] cciss: kfree(NULL) is legal
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/cciss.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 0d65394707db..b9c786ee6fad 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -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)