diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2024-10-17 12:53:10 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-10-23 16:10:16 +0200 |
commit | fd4056db7aee901677a3c62534b2d31b38678cb4 (patch) | |
tree | 41a80d261c8b762aa86967e0fe818939afc4e34b /tools/perf/scripts/python/stackcollapse.py | |
parent | 11afdf3b2ecee038dda8a38b6b6e6d232e64a210 (diff) |
net: pcs: xpcs: remove return statements in void function
While using "return" when calling a void returning function inside a
function that returns void doesn't cause a compiler warning, it looks
weird. Convert the bunch of if() statements to a switch() and remove
these return statements.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tested-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions