projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91d5b70
)
xsk: Remove a double pool->dev assignment in xp_dma_map
author
Christoph Hellwig
<hch@lst.de>
Mon, 29 Jun 2020 13:03:58 +0000
(15:03 +0200)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Tue, 30 Jun 2020 13:44:03 +0000
(15:44 +0200)
->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
net/xdp/xsk_buff_pool.c
patch
|
blob
|
history
diff --git
a/net/xdp/xsk_buff_pool.c
b/net/xdp/xsk_buff_pool.c
index 9fe84c797a70609992bb80fbaa235f3c0980394d..6733e2c59e4835fb8fffb6d8ef5948b0c41ebbd4 100644
(file)
--- a/
net/xdp/xsk_buff_pool.c
+++ b/
net/xdp/xsk_buff_pool.c
@@
-193,7
+193,6
@@
int xp_dma_map(struct xsk_buff_pool *pool, struct device *dev,
if (pool->unaligned)
xp_check_dma_contiguity(pool);
- pool->dev = dev;
pool->dma_need_sync = !xp_check_cheap_dma(pool);
return 0;
}