From nobody Sat Apr 11 06:32:43 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AE820C00140 for ; Mon, 15 Aug 2022 06:07:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233100AbiHOGH2 (ORCPT ); Mon, 15 Aug 2022 02:07:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230350AbiHOGHW (ORCPT ); Mon, 15 Aug 2022 02:07:22 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CBF318358; Sun, 14 Aug 2022 23:07:20 -0700 (PDT) Received: from dggpeml500026.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4M5kHh0DFRz1M8wc; Mon, 15 Aug 2022 14:04:00 +0800 (CST) Received: from huawei.com (10.175.101.6) by dggpeml500026.china.huawei.com (7.185.36.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 15 Aug 2022 14:07:17 +0800 From: Zhengchao Shao To: , , , , , , , , CC: , , Subject: [PATCH net-next] net: sched: delete unused input parameter in qdisc_create Date: Mon, 15 Aug 2022 14:10:23 +0800 Message-ID: <20220815061023.51318-1-shaozhengchao@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.175.101.6] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500026.china.huawei.com (7.185.36.106) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The input parameter p is unused in qdisc_create. Delete it. Signed-off-by: Zhengchao Shao --- net/sched/sch_api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index fe596bf3cb99..8abb85c51e45 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -1164,7 +1164,7 @@ static int qdisc_block_indexes_set(struct Qdisc *sch,= struct nlattr **tca, =20 static struct Qdisc *qdisc_create(struct net_device *dev, struct netdev_queue *dev_queue, - struct Qdisc *p, u32 parent, u32 handle, + u32 parent, u32 handle, struct nlattr **tca, int *errp, struct netlink_ext_ack *extack) { @@ -1634,7 +1634,7 @@ static int tc_modify_qdisc(struct sk_buff *skb, struc= t nlmsghdr *n, } if (clid =3D=3D TC_H_INGRESS) { if (dev_ingress_queue(dev)) { - q =3D qdisc_create(dev, dev_ingress_queue(dev), p, + q =3D qdisc_create(dev, dev_ingress_queue(dev), tcm->tcm_parent, tcm->tcm_parent, tca, &err, extack); } else { @@ -1651,7 +1651,7 @@ static int tc_modify_qdisc(struct sk_buff *skb, struc= t nlmsghdr *n, else dev_queue =3D netdev_get_tx_queue(dev, 0); =20 - q =3D qdisc_create(dev, dev_queue, p, + q =3D qdisc_create(dev, dev_queue, tcm->tcm_parent, tcm->tcm_handle, tca, &err, extack); } --=20 2.17.1