summaryrefslogtreecommitdiff
path: root/samples/kprobes
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-07-10 18:49:19 +0300
committerMark Brown <broonie@kernel.org>2023-07-10 20:27:43 +0300
commit440c47331bdb889e24128c75387c695ca81d9b9b (patch)
treeac93ca0deb0ee640cc8ea6c1650c4ed093483745 /samples/kprobes
parentfbab5b2c09060e8034fee6ec2df69a62594fb7db (diff)
downloadlinux-440c47331bdb889e24128c75387c695ca81d9b9b.tar.xz
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 <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20230710154932.68377-3-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'samples/kprobes')
0 files changed, 0 insertions, 0 deletions