[firefly] [PATCH 3/3] Staging: rtl8192u: fix using plain integer as NULL
Teodora Baluta
teobaluta at gmail.com
Sat Oct 12 01:22:26 EEST 2013
This patch fixes the following sparse warning:
* drivers/staging/rtl8192u/r8192U_core.c:2012:34: warning: Using plain
integer as NULL pointer
Signed-off-by: Teodora Baluta <teobaluta at gmail.com>
---
drivers/staging/rtl8192u/r8192U_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c
index 9a384b2..488b895 100644
--- a/drivers/staging/rtl8192u/r8192U_core.c
+++ b/drivers/staging/rtl8192u/r8192U_core.c
@@ -2010,7 +2010,7 @@ static void rtl8192_usb_deleteendpoints(struct net_device *dev)
priv->oldaddr = NULL;
if (priv->pp_rxskb) {
kfree(priv->pp_rxskb);
- priv->pp_rxskb = 0;
+ priv->pp_rxskb = NULL;
}
}
#else
--
1.7.10.4
More information about the firefly
mailing list