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>
This commit is contained in:
parent
819fa2a0d7
commit
c674f4aab4
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue