vxge: fix sparse warning
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Thu, 5 Feb 2015 13:56:09 +0000 (13:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Feb 2015 00:07:06 +0000 (16:07 -0800)
this patch fixes following sparse warning:

vxge-config.c:4640:30: warning: Using plain integer as NULL pointer

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/neterion/vxge/vxge-config.c

index 2bbd01fcb9b019eaeabc1519a98799e65ea1b51a..6223930a8155e66878e1bde5645c5d31809e2a8b 100644 (file)
@@ -4637,7 +4637,7 @@ static void __vxge_hw_vp_terminate(struct __vxge_hw_device *hldev, u32 vp_id)
        vpath->ringh = NULL;
        vpath->fifoh = NULL;
        memset(&vpath->vpath_handles, 0, sizeof(struct list_head));
-       vpath->stats_block = 0;
+       vpath->stats_block = NULL;
        vpath->hw_stats = NULL;
        vpath->hw_stats_sav = NULL;
        vpath->sw_stats = NULL;