xsk: remove unnecessary assignment
authorPrashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Fri, 31 Aug 2018 00:59:16 +0000 (09:59 +0900)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 31 Aug 2018 23:36:08 +0000 (01:36 +0200)
Since xdp_umem_query() was added one assignment of bpf.command was
missed from cleanup. Removing the assignment statement.

Fixes: 84c6b86875e01a0 ("xsk: don't allow umem replace at stack level")
Signed-off-by: Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Acked-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/xdp/xdp_umem.c

index bfe2dbea480ba8ef54e0cc24659aa15d267aea2a..d179732617dc8475b7058c4a088dc50319802d95 100644 (file)
@@ -76,8 +76,6 @@ int xdp_umem_assign_dev(struct xdp_umem *umem, struct net_device *dev,
        if (!dev->netdev_ops->ndo_bpf || !dev->netdev_ops->ndo_xsk_async_xmit)
                return force_zc ? -EOPNOTSUPP : 0; /* fail or fallback */
 
-       bpf.command = XDP_QUERY_XSK_UMEM;
-
        rtnl_lock();
        err = xdp_umem_query(dev, queue_id);
        if (err) {