summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/dlink
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2023-05-30 11:19:44 +0200
committerDavid S. Miller <davem@davemloft.net>2023-05-31 11:00:30 +0200
commitdced11ef84fb310f4ddfa74d1c09687b8f845d1b (patch)
tree0a3b476b82239c4ffad4a14aac2bb5fb68681742 /drivers/net/ethernet/dlink
parentMerge branch 'dsa-marvell-mv88e6071-and-6020-support' (diff)
downloadlinux-dced11ef84fb310f4ddfa74d1c09687b8f845d1b.tar.xz
linux-dced11ef84fb310f4ddfa74d1c09687b8f845d1b.zip
net/sched: taprio: don't overwrite "sch" variable in taprio_dump_class_stats()
In taprio_dump_class_stats() we don't need a reference to the root Qdisc once we get the reference to the child corresponding to this traffic class, so it's okay to overwrite "sch". But in a future patch we will need the root Qdisc too, so create a dedicated "child" pointer variable to hold the child reference. This also makes the code adhere to a more conventional coding style. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/dlink')
0 files changed, 0 insertions, 0 deletions