]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Feb 2018 16:24:51 +0000 (11:24 -0500)
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>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c

index 7a3ebfd236f5ebcd2f462608de3781c7560b0ac5..100adee778dfd62f5d3d559dccc9f2b5a8bb94a4 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);
        }