From: Prashant Bhole Date: Fri, 31 Aug 2018 00:59:16 +0000 (+0900) Subject: xsk: remove unnecessary assignment X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a29c8bb640ca13f5731510ceaf65a6e1fe6055c8;p=openwrt%2Fstaging%2Fblogic.git xsk: remove unnecessary assignment 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 Acked-by: Björn Töpel Signed-off-by: Daniel Borkmann --- diff --git a/net/xdp/xdp_umem.c b/net/xdp/xdp_umem.c index bfe2dbea480b..d179732617dc 100644 --- a/net/xdp/xdp_umem.c +++ b/net/xdp/xdp_umem.c @@ -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) {