aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorAlexander Aring <[email protected]>2017-12-04 18:40:00 -0500
committerDavid S. Miller <[email protected]>2017-12-05 15:04:27 -0500
commit54160ef6ec64e5a27b8f4ab4105ae81a57064dca (patch)
treec6578ca50e923aae50e6f00e9555c9c6e1236d62 /tools/perf/scripts/python/export-to-sqlite.py
parent0ac4bd68ab50a9f0860b10caacc1285fda5da0ca (diff)
net: sched: sch_api: rearrange init handling
This patch fixes the following checkpatch error: ERROR: do not use assignment in if condition by rearranging the if condition to execute init callback only if init callback exists. The whole setup afterwards is called in any case, doesn't matter if init callback is set or not. This patch has the same behaviour as before, just without assign err variable in if condition. It also makes the code easier to read. Reviewed-by: Jamal Hadi Salim <[email protected]> Cc: David Ahern <[email protected]> Signed-off-by: Alexander Aring <[email protected]> Acked-by: Jamal Hadi Salim <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions