bfa: Fix incorrect de-reference of pointer

Signed-off-by: Anil Gurumurthy <anil.gurumurthy@qlogic.com>
Tested-by: Sudarsana Kalluru <sudarsana.kalluru@qlogic.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
This commit is contained in:
Anil Gurumurthy 2015-08-13 06:41:52 -04:00 committed by James Bottomley
parent b7f4d63438
commit 6f3d828f5b

View file

@ -3878,7 +3878,7 @@ bfa_sfp_show_comp(struct bfa_sfp_s *sfp, struct bfi_mbmsg_s *msg)
bfa_trc(sfp, sfp->data_valid); bfa_trc(sfp, sfp->data_valid);
if (sfp->data_valid) { if (sfp->data_valid) {
u32 size = sizeof(struct sfp_mem_s); u32 size = sizeof(struct sfp_mem_s);
u8 *des = (u8 *) &(sfp->sfpmem); u8 *des = (u8 *)(sfp->sfpmem);
memcpy(des, sfp->dbuf_kva, size); memcpy(des, sfp->dbuf_kva, size);
} }
/* /*