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:
Ioana Radulescu 2018-03-06 11:43:44 -06:00 committed by Greg Kroah-Hartman
parent 819fa2a0d7
commit c674f4aab4
1 changed files with 1 additions and 1 deletions

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