From: Li RongQing <lirongq...@baidu.com> Date: Fri, 10 Aug 2018 18:00:00 +0800
> @@ -4275,7 +4259,7 @@ static int packet_set_ring(struct sock *sk, union > tpacket_req_u *req_u, > > err = -ENOMEM; > order = get_order(req->tp_block_size); > - pg_vec = alloc_pg_vec(req, order); > + pg_vec = alloc_pg_vec(req); > if (unlikely(!pg_vec)) > goto out; > switch (po->tp_version) { Variable 'order' is now unused.