aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2023-07-10 18:49:19 +0300
committerMark Brown <[email protected]>2023-07-10 18:27:43 +0100
commit440c47331bdb889e24128c75387c695ca81d9b9b (patch)
treeac93ca0deb0ee640cc8ea6c1650c4ed093483745 /tools/perf/scripts/python/bin/stackcollapse-record
parentfbab5b2c09060e8034fee6ec2df69a62594fb7db (diff)
spi: Drop duplicate IDR allocation code in spi_register_controller()
Refactor spi_register_controller() to drop duplicate IDR allocation. Instead of if-else-if branching use two sequential if:s, which allows to re-use the logic of IDR allocation in all cases. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions