aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-12-08 18:03:16 +0200
committerMark Brown <broonie@kernel.org>2024-12-09 13:14:19 +0000
commitb6ffe0e6147915fe3d31705e14dfbbecb724fb81 (patch)
treee1c6bd16784f727f9641240d0810829d8b95c6db /scripts/gdb/linux/utils.py
parentspi: Merge up v6.12-rc2 (diff)
downloadwireguard-linux-b6ffe0e6147915fe3d31705e14dfbbecb724fb81.tar.xz
wireguard-linux-b6ffe0e6147915fe3d31705e14dfbbecb724fb81.zip
spi: Unify firmware node type checks
The few functions are using different approaches on how to check for the type of firmware node. Unify them to use a modern way of it. With that in place it becomes obvious that no need to have independent conditionals when they are dependent and hence the code generation can be improved a little bit (clang-18, x86_64): add/remove: 0/0 grow/shrink: 2/2 up/down: 16/-46 (-30) Total: Before=49801, After=49771, chg -0.06% Meanwhile no functional changes intended. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20241208195635.1271656-2-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions