Skip to content

Commit a327689

Browse files
Wolfram Sangdavem330
authored andcommitted
net: amd-xgbe: fix comparison to bitshift when dealing with a mask
Due to a typo, the mask was destroyed by a comparison instead of a bit shift. Signed-off-by: Wolfram Sang <[email protected]> Acked-by: Tom Lendacky <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a56c698 commit a327689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/amd/xgbe/xgbe-drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ static void xgbe_isr_task(unsigned long data)
595595

596596
reissue_mask = 1 << 0;
597597
if (!pdata->per_channel_irq)
598-
reissue_mask |= 0xffff < 4;
598+
reissue_mask |= 0xffff << 4;
599599

600600
XP_IOWRITE(pdata, XP_INT_REISSUE_EN, reissue_mask);
601601
}

0 commit comments

Comments
 (0)