]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: rtl8192e: fix wrong assignment
authorGujulan Elango, Hari Prasath (H.) <hgujulan@visteon.com>
Mon, 4 May 2015 09:29:05 +0000 (09:29 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 May 2015 13:00:40 +0000 (15:00 +0200)
This patch addresses a spatch warning on assigning a negative
value to a unsigned integer.Similar patch has been submitted by
Larry Finger earlier to silence the same spatch warning in another
file.

Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@visteon.com>
Acked-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_core.c

index 47b5aadcb2bf7fd2c2a35a716a8caa408e2c50dc..6d60ac47c8c50f6891addcb7fa526bea7dd3cb0c 100644 (file)
@@ -2311,7 +2311,7 @@ static void rtl8192_rx_normal(struct net_device *dev)
 
        struct rtllib_rx_stats stats = {
                .signal = 0,
-               .noise = -98,
+               .noise = (u8) -98,
                .rate = 0,
                .freq = RTLLIB_24GHZ_BAND,
        };