summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2018-02-06 09:52:07 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2018-03-12 09:55:11 +0100
commitb7db978ac283b237835129ac87f26cbac94d04e7 (patch)
tree8c76175fe8492ee082a2b2ec43228a56491a70d5
parentddc502dfed600bff0b61d899f70d95b76223fdfc (diff)
downloadlinux-b7db978ac283b237835129ac87f26cbac94d04e7.tar.gz
linux-b7db978ac283b237835129ac87f26cbac94d04e7.tar.bz2
linux-b7db978ac283b237835129ac87f26cbac94d04e7.zip
can: m_can: change comparison to bitshift when dealing with a mask
Due to a typo, the mask was destroyed by a comparison instead of a bit shift. Reported-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r--drivers/net/can/m_can/m_can.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c
index 2594f7779c6f..74170b0d23cf 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)