diff options
author | Jiri Slaby (SUSE) <jirislaby@kernel.org> | 2025-08-14 09:24:50 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-08-17 12:46:26 +0200 |
commit | 9a2225f2a7214cc04a03a09768b19215a3fe4c16 (patch) | |
tree | 40342d21d8d8cedcf068c9c867f0becaacfd6531 /rust/helpers/helpers.c | |
parent | b339809edda15939e7d46b429c420c2bfe4ad946 (diff) |
serial: 8250_core: use guard() in serial_unlink_irq_chain()
Having all the new guards, use them in the 8250 code. This improves
readability, makes error handling easier, and marks locked portions of
code explicit.
serial_unlink_irq_chain() is done separately here because with the
guard() used, those BUG_ON()s can be switched WARN_ON()s as we can
actually handle the conditions and return (despite something went really
wrong).
Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250814072456.182853-11-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions