summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimangi Saraogi <himangi774@gmail.com>2014-03-12 19:25:20 (GMT)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>2014-03-14 00:33:01 (GMT)
commit983b4122315a224651c1745096473ad1902e2868 (patch)
tree50d4a73ce32b30ac6bdd7bdeb4d3891db7d0a093
parent74f161f61908602fa1ab761a56fa1d00a99f57b0 (diff)
downloadlinux-983b4122315a224651c1745096473ad1902e2868.tar.xz
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: Himangi Saraogi <himangi774@gmail.com> Acked-by: Bob Copeland <me@bobcopeland.com> Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
-rw-r--r--drivers/staging/rtl8187se/r8180_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8187se/r8180_core.c b/drivers/staging/rtl8187se/r8180_core.c
index 7938ad8..79ec263 100644
--- a/drivers/staging/rtl8187se/r8180_core.c
+++ b/drivers/staging/rtl8187se/r8180_core.c
@@ -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));