Signed-off-by: Andrey Smirnov <[email protected]>
---
drivers/net/fec_imx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c
index 0ca594082..98711baa7 100644
--- a/drivers/net/fec_imx.c
+++ b/drivers/net/fec_imx.c
@@ -467,7 +467,7 @@ static int fec_send(struct eth_device *dev, void *eth_data,
int data_length)
return -1;
}
- if ((unsigned long)eth_data & (DB_DATA_ALIGNMENT - 1))
+ if (!IS_ALIGNED((unsigned long)eth_data, DB_DATA_ALIGNMENT))
dev_warn(&dev->dev, "Transmit data not aligned: %p!\n",
eth_data);
/*
--
2.17.0
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox