summaryrefslogtreecommitdiff
path: root/rust/helpers/build_bug.c
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <jirislaby@kernel.org>2025-11-19 12:24:57 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-11-21 20:31:27 +0300
commitda218406dd50e0ac96bb383de4edd208286efe70 (patch)
treefa22256eaa9ce61163ef1f7a9084b2fa6951a470 /rust/helpers/build_bug.c
parentf9066dac8ffe237817030d8505ed3dfdae7241ae (diff)
downloadlinux-da218406dd50e0ac96bb383de4edd208286efe70.tar.xz
serial: 8250_platform: simplify IRQF_SHARED handling
IRQF_SHARED is the only flag handled in __serial8250_isa_init_ports() and serial8250_probe_platform(). There is no need to precompute the flags. Instead, initialize port->irqflags directly in the for loop. Note the "if (bool)" is cheap and these are not hot paths anyway. Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> Link: https://patch.msgid.link/20251119092457.826789-7-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions