Skip to content

Commit

Permalink
net: amd-xgbe: fix comparison to bitshift when dealing with a mask
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Wolfram Sang authored and davem330 committed Feb 6, 2018
1 parent a56c698 commit a327689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/amd/xgbe/xgbe-drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ static void xgbe_isr_task(unsigned long data)

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);
}
Expand Down

0 comments on commit a327689

Please sign in to comment.