From: Gujulan Elango, Hari Prasath (H.) Date: Mon, 4 May 2015 09:29:05 +0000 (+0000) Subject: staging: rtl8192e: fix wrong assignment X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=94e057d7c4f01b1593773c7e8c5226cae23cf2c7;p=linux-beck.git staging: rtl8192e: fix wrong assignment 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 Acked-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index 47b5aadcb2bf..6d60ac47c8c5 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c @@ -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, };