Skip to content

Commit

Permalink
xsk: Remove a double pool->dev assignment in xp_dma_map
Browse files Browse the repository at this point in the history
->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
  • Loading branch information
Christoph Hellwig authored and Daniel Borkmann committed Jun 30, 2020
1 parent 91d5b70 commit 53937ff
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/xdp/xsk_buff_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 53937ff

Please sign in to comment.