diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 414350ab584e..ecebdfa00470 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -43,7 +43,6 @@ | |||
43 | #include "lpfc_crtn.h" | 43 | #include "lpfc_crtn.h" |
44 | #include "lpfc_vport.h" | 44 | #include "lpfc_vport.h" |
45 | #include "lpfc_version.h" | 45 | #include "lpfc_version.h" |
46 | #include "lpfc_vport.h" | ||
47 | 46 | ||
48 | static int lpfc_parse_vpd(struct lpfc_hba *, uint8_t *, int); | 47 | static int lpfc_parse_vpd(struct lpfc_hba *, uint8_t *, int); |
49 | static void lpfc_get_hba_model_desc(struct lpfc_hba *, uint8_t *, uint8_t *); | 48 | static void lpfc_get_hba_model_desc(struct lpfc_hba *, uint8_t *, uint8_t *); |
@@ -1266,11 +1265,10 @@ lpfc_hba_init(struct lpfc_hba *phba, uint32_t *hbainit) | |||
1266 | uint32_t *HashWorking; | 1265 | uint32_t *HashWorking; |
1267 | uint32_t *pwwnn = (uint32_t *) phba->wwnn; | 1266 | uint32_t *pwwnn = (uint32_t *) phba->wwnn; |
1268 | 1267 | ||
1269 | HashWorking = kmalloc(80 * sizeof(uint32_t), GFP_KERNEL); | 1268 | HashWorking = kcalloc(80, sizeof(uint32_t), GFP_KERNEL); |
1270 | if (!HashWorking) | 1269 | if (!HashWorking) |
1271 | return; | 1270 | return; |
1272 | 1271 | ||
1273 | memset(HashWorking, 0, (80 * sizeof(uint32_t))); | ||
1274 | HashWorking[0] = HashWorking[78] = *pwwnn++; | 1272 | HashWorking[0] = HashWorking[78] = *pwwnn++; |
1275 | HashWorking[1] = HashWorking[79] = *pwwnn; | 1273 | HashWorking[1] = HashWorking[79] = *pwwnn; |
1276 | 1274 | ||