Commit cfc111d5 authored by Zhengchao Shao's avatar Zhengchao Shao Committed by Jakub Kicinski

net: sched: delete unused input parameter in qdisc_create

The input parameter p is unused in qdisc_create. Delete it.
Signed-off-by: default avatarZhengchao Shao <shaozhengchao@huawei.com>
Link: https://lore.kernel.org/r/20220815061023.51318-1-shaozhengchao@huawei.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 56cb6a59
...@@ -1164,7 +1164,7 @@ static int qdisc_block_indexes_set(struct Qdisc *sch, struct nlattr **tca, ...@@ -1164,7 +1164,7 @@ static int qdisc_block_indexes_set(struct Qdisc *sch, struct nlattr **tca,
static struct Qdisc *qdisc_create(struct net_device *dev, static struct Qdisc *qdisc_create(struct net_device *dev,
struct netdev_queue *dev_queue, struct netdev_queue *dev_queue,
struct Qdisc *p, u32 parent, u32 handle, u32 parent, u32 handle,
struct nlattr **tca, int *errp, struct nlattr **tca, int *errp,
struct netlink_ext_ack *extack) struct netlink_ext_ack *extack)
{ {
...@@ -1641,7 +1641,7 @@ static int tc_modify_qdisc(struct sk_buff *skb, struct nlmsghdr *n, ...@@ -1641,7 +1641,7 @@ static int tc_modify_qdisc(struct sk_buff *skb, struct nlmsghdr *n,
} }
if (clid == TC_H_INGRESS) { if (clid == TC_H_INGRESS) {
if (dev_ingress_queue(dev)) { if (dev_ingress_queue(dev)) {
q = qdisc_create(dev, dev_ingress_queue(dev), p, q = qdisc_create(dev, dev_ingress_queue(dev),
tcm->tcm_parent, tcm->tcm_parent, tcm->tcm_parent, tcm->tcm_parent,
tca, &err, extack); tca, &err, extack);
} else { } else {
...@@ -1658,7 +1658,7 @@ static int tc_modify_qdisc(struct sk_buff *skb, struct nlmsghdr *n, ...@@ -1658,7 +1658,7 @@ static int tc_modify_qdisc(struct sk_buff *skb, struct nlmsghdr *n,
else else
dev_queue = netdev_get_tx_queue(dev, 0); dev_queue = netdev_get_tx_queue(dev, 0);
q = qdisc_create(dev, dev_queue, p, q = qdisc_create(dev, dev_queue,
tcm->tcm_parent, tcm->tcm_handle, tcm->tcm_parent, tcm->tcm_handle,
tca, &err, extack); tca, &err, extack);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment