net: amd-xgbe: fix comparison to bitshift when dealing with a mask
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 5 Feb 2018 20:10:01 +0000 (21:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2018 06:41:08 +0000 (22:41 -0800)
[ Upstream commit a3276892db7a588bedc33168e502572008f714a9 ]

Due to a typo, the mask was destroyed by a comparison instead of a bit
shift.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c

index 608693d11bd7f7f2a7b6c3eeaeaf20dbacf859e4..75c4455e22717ceb6017359f2f81ff348f448c66 100644 (file)
@@ -595,7 +595,7 @@ isr_done:
 
                reissue_mask = 1 << 0;
                if (!pdata->per_channel_irq)
-                       reissue_mask |= 0xffff < 4;
+                       reissue_mask |= 0xffff << 4;
 
                XP_IOWRITE(pdata, XP_INT_REISSUE_EN, reissue_mask);
        }