diff options
| author | 2025-06-11 12:03:17 +0200 | |
|---|---|---|
| committer | 2025-06-17 13:42:36 +0200 | |
| commit | 6529c88f6bfedaa5bc2354eb448771d884798877 (patch) | |
| tree | b4de7fde9e909a1d7ad5a675c64f52a60b0c56c4 /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | serial: 8250: invert serial8250_register_8250_port() CIR condition (diff) | |
serial: 8250: invert condition to avoid a goto label
Use of "goto" in this code is frowned upon:
+-------
|if (port->type == PORT_UNKNOWN)
| goto out_unlock;
|CODE;
|out_unlock:
+-------
Instead, simply do:
+-------
|if (port->type != PORT_UNKNOWN)
| CODE;
+-------
Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250611100319.186924-32-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
