From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQdQs-000072-Rm for barebox@lists.infradead.org; Wed, 06 Jun 2018 18:45:27 +0000 Received: by mail-pf0-x243.google.com with SMTP id q1-v6so3562278pff.13 for ; Wed, 06 Jun 2018 11:45:08 -0700 (PDT) From: Andrey Smirnov Date: Wed, 6 Jun 2018 11:44:02 -0700 Message-Id: <20180606184431.10348-10-andrew.smirnov@gmail.com> In-Reply-To: <20180606184431.10348-1-andrew.smirnov@gmail.com> References: <20180606184431.10348-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 v3 09/38] 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