Commit 9eaee8be authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

xen-netback: fix sparse warning

Fix warning about 0 used as NULL.
Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 61c2fc4b
...@@ -1551,7 +1551,7 @@ static void xen_netbk_idx_release(struct xen_netbk *netbk, u16 pending_idx, ...@@ -1551,7 +1551,7 @@ static void xen_netbk_idx_release(struct xen_netbk *netbk, u16 pending_idx,
xenvif_put(vif); xenvif_put(vif);
netbk->mmap_pages[pending_idx]->mapping = 0; netbk->mmap_pages[pending_idx]->mapping = NULL;
put_page(netbk->mmap_pages[pending_idx]); put_page(netbk->mmap_pages[pending_idx]);
netbk->mmap_pages[pending_idx] = NULL; netbk->mmap_pages[pending_idx] = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment