diff options
Diffstat (limited to 'drivers/scsi/ips.c')
-rw-r--r-- | drivers/scsi/ips.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c index d0c51a2d40ba..cae3262a2957 100644 --- a/drivers/scsi/ips.c +++ b/drivers/scsi/ips.c | |||
@@ -4514,10 +4514,8 @@ ips_free(ips_ha_t * ha) | |||
4514 | ha->enq = NULL; | 4514 | ha->enq = NULL; |
4515 | } | 4515 | } |
4516 | 4516 | ||
4517 | if (ha->conf) { | 4517 | kfree(ha->conf); |
4518 | kfree(ha->conf); | 4518 | ha->conf = NULL; |
4519 | ha->conf = NULL; | ||
4520 | } | ||
4521 | 4519 | ||
4522 | if (ha->adapt) { | 4520 | if (ha->adapt) { |
4523 | pci_free_consistent(ha->pcidev, | 4521 | pci_free_consistent(ha->pcidev, |
@@ -4535,15 +4533,11 @@ ips_free(ips_ha_t * ha) | |||
4535 | ha->logical_drive_info = NULL; | 4533 | ha->logical_drive_info = NULL; |
4536 | } | 4534 | } |
4537 | 4535 | ||
4538 | if (ha->nvram) { | 4536 | kfree(ha->nvram); |
4539 | kfree(ha->nvram); | 4537 | ha->nvram = NULL; |
4540 | ha->nvram = NULL; | ||
4541 | } | ||
4542 | 4538 | ||
4543 | if (ha->subsys) { | 4539 | kfree(ha->subsys); |
4544 | kfree(ha->subsys); | 4540 | ha->subsys = NULL; |
4545 | ha->subsys = NULL; | ||
4546 | } | ||
4547 | 4541 | ||
4548 | if (ha->ioctl_data) { | 4542 | if (ha->ioctl_data) { |
4549 | pci_free_consistent(ha->pcidev, ha->ioctl_len, | 4543 | pci_free_consistent(ha->pcidev, ha->ioctl_len, |