summaryrefslogtreecommitdiff
path: root/net/xdp/xsk_queue.c
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn.topel@intel.com>2018-05-18 15:00:23 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2018-05-18 17:07:03 +0300
commitda60cf00c1a576a459defed2edfb88c858510b64 (patch)
treee92b52a3b4392269522dd42aa2f6ebc1c95eb725 /net/xdp/xsk_queue.c
parent54b85c27fea4ce2be32a69bc2357847fe0367c64 (diff)
downloadlinux-da60cf00c1a576a459defed2edfb88c858510b64.tar.xz
xsk: fixed some cases of unnecessary parentheses
Removed some cases of unnecessary parentheses. Signed-off-by: Björn Töpel <bjorn.topel@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'net/xdp/xsk_queue.c')
-rw-r--r--net/xdp/xsk_queue.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/xdp/xsk_queue.c b/net/xdp/xsk_queue.c
index 9f605d22dad4..ebe85e59507e 100644
--- a/net/xdp/xsk_queue.c
+++ b/net/xdp/xsk_queue.c
@@ -22,8 +22,7 @@ static u32 xskq_umem_get_ring_size(struct xsk_queue *q)
static u32 xskq_rxtx_get_ring_size(struct xsk_queue *q)
{
- return (sizeof(struct xdp_ring) +
- q->nentries * sizeof(struct xdp_desc));
+ return sizeof(struct xdp_ring) + q->nentries * sizeof(struct xdp_desc);
}
struct xsk_queue *xskq_create(u32 nentries, bool umem_queue)