]> Gentwo Git Trees - linux/.git/commit
serial: sc16is7xx: use guards for simple mutex locks
authorHugo Villeneuve <hvilleneuve@dimonoff.com>
Mon, 27 Oct 2025 14:29:47 +0000 (10:29 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Oct 2025 14:25:41 +0000 (15:25 +0100)
commit0f4f88bfd7e7bf3f3293045fffdc63586b0a889f
treea272f7658ebd864b715b066b967956fa92abe435
parentaed482b53a866ecb5b46f8936462048584cf9b37
serial: sc16is7xx: use guards for simple mutex locks

Guards can help to make the code more readable, so use them wherever they
do so.

In sc16is7xx_port_irq(), labels and 'rc' locals are eliminated completely.

Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://patch.msgid.link/20251027142957.1032073-6-hugo@hugovil.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sc16is7xx.c