mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
xen-netback: fix sparse warning
Fix warning about 0 used as NULL. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
61c2fc4b50
commit
9eaee8beee
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue