From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fMg4Z-000467-Gw for barebox@lists.infradead.org; Sat, 26 May 2018 20:46:10 +0000 Received: by mail-pl0-x244.google.com with SMTP id z9-v6so1665985plk.11 for ; Sat, 26 May 2018 13:45:48 -0700 (PDT) From: Andrey Smirnov Date: Sat, 26 May 2018 13:44:12 -0700 Message-Id: <20180526204451.16530-10-andrew.smirnov@gmail.com> In-Reply-To: <20180526204451.16530-1-andrew.smirnov@gmail.com> References: <20180526204451.16530-1-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2 09/48] net: fec_imx: Make use of IS_ALIGNED To: barebox@lists.infradead.org Cc: Andrey Smirnov Signed-off-by: Andrey Smirnov --- 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 barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox