From: Nelson Escobar Date: Wed, 9 Dec 2015 18:42:15 +0000 (-0800) Subject: IB/usnic: Fix incorrect cast in usnic_ib_fw_string_to_u64 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3ea728613931bfe0168b439a10de026faef275a0;p=linux-beck.git IB/usnic: Fix incorrect cast in usnic_ib_fw_string_to_u64 Signed-off-by: Christian Benvenuti Signed-off-by: Nelson Escobar Reviewed-by: Dave Goodell Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/hw/usnic/usnic_ib_verbs.c b/drivers/infiniband/hw/usnic/usnic_ib_verbs.c index f8e3211689a3..5ae65691514b 100644 --- a/drivers/infiniband/hw/usnic/usnic_ib_verbs.c +++ b/drivers/infiniband/hw/usnic/usnic_ib_verbs.c @@ -51,7 +51,7 @@ static void usnic_ib_fw_string_to_u64(char *fw_ver_str, u64 *fw_ver) { - *fw_ver = (u64) *fw_ver_str; + *fw_ver = *((u64 *)fw_ver_str); } static int usnic_ib_fill_create_qp_resp(struct usnic_ib_qp_grp *qp_grp,