From: Ioana Radulescu Date: Tue, 6 Mar 2018 17:43:44 +0000 (-0600) Subject: staging: fsl-mc/dpio: Fix incorrect cast X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c674f4aab45d702bdc18288646ddc6c348589d98;p=openwrt%2Fstaging%2Fblogic.git staging: fsl-mc/dpio: Fix incorrect cast Move the cast in dpaa2_sg_get_addr() to the right place. Signed-off-by: Ioana Radulescu Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/fsl-mc/include/dpaa2-fd.h b/drivers/staging/fsl-mc/include/dpaa2-fd.h index 3e022001f0b1..70501d7789c0 100644 --- a/drivers/staging/fsl-mc/include/dpaa2-fd.h +++ b/drivers/staging/fsl-mc/include/dpaa2-fd.h @@ -287,7 +287,7 @@ enum dpaa2_sg_format { */ static inline dma_addr_t dpaa2_sg_get_addr(const struct dpaa2_sg_entry *sg) { - return le64_to_cpu((dma_addr_t)sg->addr); + return (dma_addr_t)le64_to_cpu(sg->addr); } /**