summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnil Gurumurthy <anil.gurumurthy@qlogic.com>2015-08-13 12:41:52 +0200
committerJames Bottomley <JBottomley@Odin.com>2015-09-06 20:39:53 +0200
commit6f3d828f5bd72174c24789aba5d4ed036b60f44b (patch)
treef1e6ba2b88db7aa9a72ca10adfb5dfb47ad26237
parentbfa: Fix indentation (diff)
downloadlinux-6f3d828f5bd72174c24789aba5d4ed036b60f44b.tar.xz
linux-6f3d828f5bd72174c24789aba5d4ed036b60f44b.zip
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>
-rw-r--r--drivers/scsi/bfa/bfa_ioc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/bfa/bfa_ioc.c b/drivers/scsi/bfa/bfa_ioc.c
index 4e7104461f09..98f7e8cca52d 100644
--- a/drivers/scsi/bfa/bfa_ioc.c
+++ b/drivers/scsi/bfa/bfa_ioc.c
@@ -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);
}
/*