aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2025-01-24 16:10:48 +0000
committerGreg Kroah-Hartman <[email protected]>2025-02-04 13:44:44 +0000
commit12397549b5014071e1d2b315509f68eb93ef9144 (patch)
tree857740976d3db87ba380d25db8e42a9a32f4faa1 /tools/testing/selftests/net/lib/py/utils.py
parentserial: port: Always update ->iotype in __uart_read_properties() (diff)
downloadkernel-12397549b5014071e1d2b315509f68eb93ef9144.tar.gz
kernel-12397549b5014071e1d2b315509f68eb93ef9144.zip
serial: port: Make ->iotype validation global in __uart_read_properties()
In order to make code robust against potential changes in the future move ->iotype validation outside of switch in __uart_read_properties(). If any code will be added in between that might leave the ->iotype value unknown the validation catches this up. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions