From: Wolfram Sang Date: Mon, 5 Feb 2018 20:10:01 +0000 (+0100) Subject: net: amd-xgbe: fix comparison to bitshift when dealing with a mask X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=94870df33c9bf52a9be3ed750670520aad43a44e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net: amd-xgbe: fix comparison to bitshift when dealing with a mask [ Upstream commit a3276892db7a588bedc33168e502572008f714a9 ] Due to a typo, the mask was destroyed by a comparison instead of a bit shift. Signed-off-by: Wolfram Sang Acked-by: Tom Lendacky Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c index 608693d11bd7..75c4455e2271 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c @@ -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); }