From 983b4122315a224651c1745096473ad1902e2868 Mon Sep 17 00:00:00 2001 From: Himangi Saraogi Date: Thu, 13 Mar 2014 00:55:20 +0530 Subject: [PATCH] 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 Acked-by: Bob Copeland Signed-off-by: Peter P Waskiewicz Jr --- drivers/staging/rtl8187se/r8180_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8187se/r8180_core.c b/drivers/staging/rtl8187se/r8180_core.c index 7938ad8d4957..79ec26317598 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)); -- 2.20.1