aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_main.c
diff options
context:
space:
mode:
authorVladimir Oltean <[email protected]>2023-05-30 09:19:44 +0000
committerDavid S. Miller <[email protected]>2023-05-31 09:00:30 +0000
commitdced11ef84fb310f4ddfa74d1c09687b8f845d1b (patch)
tree0a3b476b82239c4ffad4a14aac2bb5fb68681742 /drivers/net/ethernet/intel/igc/igc_main.c
parentMerge branch 'dsa-marvell-mv88e6071-and-6020-support' (diff)
downloadkernel-dced11ef84fb310f4ddfa74d1c09687b8f845d1b.tar.gz
kernel-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 <[email protected]> Acked-by: Vinicius Costa Gomes <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions