Commit 983b4122 authored by Himangi Saraogi's avatar Himangi Saraogi Committed by Peter P Waskiewicz Jr

staging:rtl8187se: Fix sparse warning in right shift

This patch fixes the following sparse warning:
drivers/staging/rtl8187se/r8180_core.c:1328:40: warning: right shift by bigger than source value
by adding parenthesis.
Signed-off-by: default avatarHimangi Saraogi <himangi774@gmail.com>
Acked-by: default avatarBob Copeland <me@bobcopeland.com>
Signed-off-by: default avatarPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
parent 74f161f6
......@@ -1324,8 +1324,8 @@ static void rtl8180_rx(struct net_device *dev)
priv->rx_skb_complete = 1;
}
signal = (unsigned char)(*(priv->rxringtail + 3) &
0x00ff0000) >> 16;
signal = (unsigned char)((*(priv->rxringtail + 3) &
0x00ff0000) >> 16);
signal = (signal & 0xfe) >> 1;
quality = (unsigned char)((*(priv->rxringtail+3)) & (0xff));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment