Received: by 10.223.176.5 with SMTP id f5csp414333wra; Tue, 6 Feb 2018 00:53:39 -0800 (PST) X-Google-Smtp-Source: AH8x227vc84c5/WbqmXejIYUxM035rp7LYk9l+nM4OMmj9nxnNpwrsoodV8SvDVexSlnIV4wY4GY X-Received: by 2002:a17:902:7d95:: with SMTP id a21-v6mr1609076plm.291.1517907219118; Tue, 06 Feb 2018 00:53:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517907219; cv=none; d=google.com; s=arc-20160816; b=BM7zTNo0MtYj77LkQfsxJuwIKEkDTJd8QWkhk6vTlanQTk4xJbhkXXWfP+wuR0xIKd jOTjMeluA/2/OI2V3cKTfn2FTYWOmFcDQK7j9TGFWL2BbCD3FkhVAyrolKmSCbZdlh96 ZML04CyU+1zgug4ejyh+pP10VwERs98HAmenzYPp5JB6xzDK4FBMwoOIiDizB97VEW6z fE5xlxpQGBzqc5EB7Rigshpy6HHc8SSU/UQ0Bw/SD1yTVZlJoc9WKX8GFqBTEDVswZs4 lTUGvWTSvdx57qbvgecfOWEnLTF9tbU5DOV2zFo2CVtLUd604aB9nVlMjyQyEtX8DT3Y 5lAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=d6dE22KAeAq90GLWwjXOvQ/xQTKj0xalJhywek8znUk=; b=BYn8hH4+HS5gK8X9xmTOc/MnyaF1uvevKZTt3VQL26Ec/0Yf8Ztodpoim4wG24oktk 3U2zTjoJkodgbvbiT2tBvUBhcYPI861MlnU7t6vrhukFEpfw3y0+kmEY7Dq3kL4Xwx4W NnWeraK6hwS2GyALPgvphgduJUnFOAjl1LvLcuuNn0F+6xKY4flevK7ZgvJd1bp+BkCr RnX+VLIJ5ZIvUsUeHT36pwX/Ml2Yek3DoltFdAk4Yp5jOzyf0hggk11TQhLty26qjuJD haaHTrH/kdzheRszcu3eXvw+YcbPyXPLL37Z8o8GbCMcxx98qo/TvYkbb5f55DGO8/6H GCSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si4922757pga.474.2018.02.06.00.53.24; Tue, 06 Feb 2018 00:53:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752633AbeBFIw2 (ORCPT + 99 others); Tue, 6 Feb 2018 03:52:28 -0500 Received: from sauhun.de ([88.99.104.3]:36842 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752270AbeBFIwX (ORCPT ); Tue, 6 Feb 2018 03:52:23 -0500 Received: from localhost (p54B33329.dip0.t-ipconnect.de [84.179.51.41]) by pokefinder.org (Postfix) with ESMTPSA id 8CE2B2C698B; Tue, 6 Feb 2018 09:52:21 +0100 (CET) From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Wolfram Sang , Wolfgang Grandegger , Marc Kleine-Budde , linux-can@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH] can: m_can: change comparison to bitshift when dealing with a mask Date: Tue, 6 Feb 2018 09:52:07 +0100 Message-Id: <20180206085207.3882-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Due to a typo, the mask was destroyed by a comparison instead of a bit shift. Reported-by: Geert Uytterhoeven Signed-off-by: Wolfram Sang --- Only build tested. drivers/net/can/m_can/m_can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c index 2594f7779c6f14..74170b0d23cf1c 100644 --- a/drivers/net/can/m_can/m_can.c +++ b/drivers/net/can/m_can/m_can.c @@ -253,7 +253,7 @@ enum m_can_mram_cfg { /* Rx FIFO 0/1 Configuration (RXF0C/RXF1C) */ #define RXFC_FWM_SHIFT 24 -#define RXFC_FWM_MASK (0x7f < RXFC_FWM_SHIFT) +#define RXFC_FWM_MASK (0x7f << RXFC_FWM_SHIFT) #define RXFC_FS_SHIFT 16 #define RXFC_FS_MASK (0x7f << RXFC_FS_SHIFT) -- 2.11.0