Skip to contentSkip to conversation

qla_os.c - vfree() checking cleanups

PATCH New [email protected] 1 participant 1 message Jun 20, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qla_os.c - vfree() checking cleanups

From: [email protected]

qla_os.c vfree() checking cleanups.

Signed-off by: James Lamanna <[email protected]>

---
 qla_os.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/qla2xxx/qla_os.c +1 -2
Index: quilt/drivers/scsi/qla2xxx/qla_os.c
===================================================================
@@ -1855,8 +1855,7 @@ qla2x00_mem_free(scsi_qla_host_t *ha)
 	if (ha->fw_dump)
 		free_pages((unsigned long)ha->fw_dump, ha->fw_dump_order);
 
-	if (ha->fw_dump_buffer)
-		vfree(ha->fw_dump_buffer);
+	vfree(ha->fw_dump_buffer);
 
 	ha->fw_dump = NULL;
 	ha->fw_dump_reading = 0;

--