diff options
author | 2025-01-24 18:10:48 +0200 | |
---|---|---|
committer | 2025-02-04 14:44:44 +0100 | |
commit | 12397549b5014071e1d2b315509f68eb93ef9144 (patch) | |
tree | 857740976d3db87ba380d25db8e42a9a32f4faa1 /net/lapb/lapb_subr.c | |
parent | serial: port: Always update ->iotype in __uart_read_properties() (diff) | |
download | wireguard-linux-12397549b5014071e1d2b315509f68eb93ef9144.tar.xz wireguard-linux-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 <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250124161530.398361-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions