Browse Source

staging: fsl-mc/dpio: Fix incorrect cast

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>
Ioana Radulescu 7 years ago
parent
commit
c674f4aab4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/staging/fsl-mc/include/dpaa2-fd.h

+ 1 - 1
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);
 }
 
 /**