staging: vt6655: Remove NULL pointer sparse warning
authorGuillaume Clement <gclement@baobob.org>
Thu, 24 Jul 2014 23:06:28 +0000 (01:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Jul 2014 18:21:28 +0000 (11:21 -0700)
We were using 0 instead of NULL to initialize a pointer, which caused
a sparse warning.

Signed-off-by: Guillaume Clement <gclement@baobob.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c

index 4413e4a286c04d9926c5e08f69d3941cd4a973f6..1e1d3b451653b0d0bf7905e4d46faa2b30d4649e 100644 (file)
@@ -1626,7 +1626,7 @@ static void device_free_tx_buf(PSDevice pDevice, PSTxDesc pDesc)
                dev_kfree_skb_irq(skb);
 
        pTDInfo->skb_dma = 0;
-       pTDInfo->skb = 0;
+       pTDInfo->skb = NULL;
        pTDInfo->byFlags = 0;
 }