diff mbox

[OPW,kernel,3/3] Staging: rtl8192u: fix using plain integer as NULL

Message ID 1381600258-3105-1-git-send-email-teobaluta@gmail.com
State New, archived
Headers show

Commit Message

Teodora Baluta Oct. 12, 2013, 5:50 p.m. UTC
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@gmail.com>
---
 drivers/staging/rtl8192u/r8192U_core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Josh Triplett Oct. 14, 2013, 5:13 p.m. UTC | #1
On Sat, Oct 12, 2013 at 08:50:58PM +0300, Teodora Baluta wrote:
> 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@gmail.com>

Reviewed-by: Josh Triplett <josh@joshtriplett.org>

> ---
>  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
> 
> -- 
> You received this message because you are subscribed to the Google Groups "opw-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opw-kernel+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
diff mbox

Patch

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