diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2005-11-07 04:01:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:54:01 -0500 |
commit | c9475cb0c358ff0dd473544280d92482df491913 (patch) | |
tree | 091617d0bdab9273d44139c86af21b7540e6d9b1 /drivers/scsi/eata.c | |
parent | 089b1dbbde28f0f641c20beabba28fa89ab4fab9 (diff) |
[PATCH] kfree cleanup: drivers/scsi
This is the drivers/scsi/ part of the big kfree cleanup patch.
Remove pointless checks for NULL prior to calling kfree() in drivers/scsi/.
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Acked-by: Kai Makisara <kai.makisara@kolumbus.fi>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/scsi/eata.c')
-rw-r--r-- | drivers/scsi/eata.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/eata.c b/drivers/scsi/eata.c index b45a4c730230..b3f9de8f7595 100644 --- a/drivers/scsi/eata.c +++ b/drivers/scsi/eata.c | |||
@@ -2580,8 +2580,7 @@ static int eata2x_release(struct Scsi_Host *shost) | |||
2580 | unsigned int i; | 2580 | unsigned int i; |
2581 | 2581 | ||
2582 | for (i = 0; i < shost->can_queue; i++) | 2582 | for (i = 0; i < shost->can_queue; i++) |
2583 | if ((&ha->cp[i])->sglist) | 2583 | kfree((&ha->cp[i])->sglist); |
2584 | kfree((&ha->cp[i])->sglist); | ||
2585 | 2584 | ||
2586 | for (i = 0; i < shost->can_queue; i++) | 2585 | for (i = 0; i < shost->can_queue; i++) |
2587 | pci_unmap_single(ha->pdev, ha->cp[i].cp_dma_addr, | 2586 | pci_unmap_single(ha->pdev, ha->cp[i].cp_dma_addr, |