OSDN Git Service

staging: fsl-mc/dpio: Fix incorrect cast
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Tue, 6 Mar 2018 17:43:44 +0000 (11:43 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2018 17:56:15 +0000 (09:56 -0800)
Move the cast in dpaa2_sg_get_addr() to the right place.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/include/dpaa2-fd.h

index 3e02200..70501d7 100644 (file)
@@ -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);
 }
 
 /**