xen-netback: fix sparse warning
authorstephen hemminger <stephen@networkplumber.org>
Wed, 10 Apr 2013 10:54:46 +0000 (10:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2013 03:23:42 +0000 (23:23 -0400)
Fix warning about 0 used as NULL.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c

index 83905a9..01a33cc 100644 (file)
@@ -1551,7 +1551,7 @@ static void xen_netbk_idx_release(struct xen_netbk *netbk, u16 pending_idx,
 
        xenvif_put(vif);
 
-       netbk->mmap_pages[pending_idx]->mapping = 0;
+       netbk->mmap_pages[pending_idx]->mapping = NULL;
        put_page(netbk->mmap_pages[pending_idx]);
        netbk->mmap_pages[pending_idx] = NULL;
 }