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:
parent
b7f4d63438
commit
6f3d828f5b
|
@ -3878,7 +3878,7 @@ bfa_sfp_show_comp(struct bfa_sfp_s *sfp, struct bfi_mbmsg_s *msg)
|
|||
bfa_trc(sfp, sfp->data_valid);
|
||||
if (sfp->data_valid) {
|
||||
u32 size = sizeof(struct sfp_mem_s);
|
||||
u8 *des = (u8 *) &(sfp->sfpmem);
|
||||
u8 *des = (u8 *)(sfp->sfpmem);
|
||||
memcpy(des, sfp->dbuf_kva, size);
|
||||
}
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue
Block a user