From: Himangi Saraogi Date: Wed, 12 Mar 2014 19:25:20 +0000 (+0530) Subject: staging:rtl8187se: Fix sparse warning in right shift X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=983b4122315a224651c1745096473ad1902e2868;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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));