aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2022-09-28 12:52:02 +0300
committerJakub Kicinski <kuba@kernel.org>2022-09-29 18:52:06 -0700
commit715bf2610f1d1adf3d4f9b7b3dd729984ec4270a (patch)
tree321c5fb58e483f236fcfb3572125fd32c7631119 /tools/perf/scripts/python/syscall-counts.py
parenta745c697830b74e4787b0c849f763941928aa06d (diff)
net: enetc: cache accesses to &priv->si->hw
The &priv->si->hw construct dereferences 2 pointers and makes lines longer than they need to be, in turn making the code harder to read. Replace &priv->si->hw accesses with a "hw" variable when there are 2 or more accesses within a function that dereference this. This includes loops, since &priv->si->hw is a loop invariant. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions