mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 15:47:36 +00:00
xsk: Remove a double pool->dev assignment in xp_dma_map
->dev is already assigned at the top of the function, remove the duplicate one at the end. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20200629130359.2690853-4-hch@lst.de
This commit is contained in:
parent
91d5b70273
commit
53937ff7bc
1 changed files with 0 additions and 1 deletions
|
@ -193,7 +193,6 @@ int xp_dma_map(struct xsk_buff_pool *pool, struct device *dev,
|
||||||
if (pool->unaligned)
|
if (pool->unaligned)
|
||||||
xp_check_dma_contiguity(pool);
|
xp_check_dma_contiguity(pool);
|
||||||
|
|
||||||
pool->dev = dev;
|
|
||||||
pool->dma_need_sync = !xp_check_cheap_dma(pool);
|
pool->dma_need_sync = !xp_check_cheap_dma(pool);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue