From: Mariusz Kozlowski <[EMAIL PROTECTED]>
drivers/scsi/lpfc/lpfc_debugfs.c | 13809 -> 13716 (-93 bytes)
drivers/scsi/lpfc/lpfc_debugfs.o | 146124 -> 146124 (0 bytes)
Signed-off-by: Mariusz Kozlowski <[EMAIL PROTECTED]>
Acked-by: James Smart <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
drivers/scsi/lpfc/lpfc_debugfs.c | 4 +---
1 files changed, 1 insertion(+), 3 deletions(-)
diff -puN
drivers/scsi/lpfc/lpfc_debugfs.c~drivers-scsi-lpfc-lpfc_debugfsc-kmalloc-memset-conversion-to-kcalloc
drivers/scsi/lpfc/lpfc_debugfs.c
---
a/drivers/scsi/lpfc/lpfc_debugfs.c~drivers-scsi-lpfc-lpfc_debugfsc-kmalloc-memset-conversion-to-kcalloc
+++ a/drivers/scsi/lpfc/lpfc_debugfs.c
@@ -901,7 +901,7 @@ lpfc_debugfs_initialize(struct lpfc_vpor
}
}
- vport->disc_trc = kmalloc(
+ vport->disc_trc = kzalloc(
(sizeof(struct lpfc_debugfs_trc) * lpfc_debugfs_max_disc_trc),
GFP_KERNEL);
@@ -912,8 +912,6 @@ lpfc_debugfs_initialize(struct lpfc_vpor
goto debug_failed;
}
atomic_set(&vport->disc_trc_cnt, 0);
- memset(vport->disc_trc, 0,
- (sizeof(struct lpfc_debugfs_trc) * lpfc_debugfs_max_disc_trc));
snprintf(name, sizeof(name), "discovery_trace");
vport->debug_disc_trc =
_
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html