aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_init.c
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2007-08-11 04:13:24 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:41:00 -0400
commitbbfbbbc1182f8b44c8cc4c99f4a3f3a512149022 (patch)
treef7e3d50cda2e3d55bff88c2cc617d60df8ddb2cb /drivers/scsi/lpfc/lpfc_init.c
parentf36789e22ac32a6554b8e4d05ab6125fc1161745 (diff)
[SCSI] kmalloc + memset conversion to kzalloc
In NCR_D700, a4000t, aic7xxx_old, bvme6000, dpt_i2o, gdth, lpfc, megaraid, mvme16x osst, pluto, qla2xxx, zorro7xx Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index 42e20612df80..ecebdfa00470 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -1265,11 +1265,10 @@ lpfc_hba_init(struct lpfc_hba *phba, uint32_t *hbainit)
1265 uint32_t *HashWorking; 1265 uint32_t *HashWorking;
1266 uint32_t *pwwnn = (uint32_t *) phba->wwnn; 1266 uint32_t *pwwnn = (uint32_t *) phba->wwnn;
1267 1267
1268 HashWorking = kmalloc(80 * sizeof(uint32_t), GFP_KERNEL); 1268 HashWorking = kcalloc(80, sizeof(uint32_t), GFP_KERNEL);
1269 if (!HashWorking) 1269 if (!HashWorking)
1270 return; 1270 return;
1271 1271
1272 memset(HashWorking, 0, (80 * sizeof(uint32_t)));
1273 HashWorking[0] = HashWorking[78] = *pwwnn++; 1272 HashWorking[0] = HashWorking[78] = *pwwnn++;
1274 HashWorking[1] = HashWorking[79] = *pwwnn; 1273 HashWorking[1] = HashWorking[79] = *pwwnn;
1275 1274