summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2018-06-07 06:00:25 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2018-06-11 08:54:10 +0200
commitdb606fac52871a544a1bf2ae80587da0f0a1cc0c (patch)
treedad6ddc8acf02eb439efde3ab849ad8ac827182a /drivers
parentc2efd653368e483e0575f3bb345302e4365b5828 (diff)
downloadbarebox-db606fac52871a544a1bf2ae80587da0f0a1cc0c.tar.gz
barebox-db606fac52871a544a1bf2ae80587da0f0a1cc0c.tar.xz
net: fec_imx: Make use of IS_ALIGNED
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/fec_imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c
index 0ca5940821..98711baa79 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);
/*