summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <jirislaby@kernel.org>2026-10-13 08:48:46 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-10-13 15:21:12 +0200
commit106eec1cdb616f475183db60c5f396202ad1332d (patch)
treedb8973590381e86f308d60bb4e8ce632b04b6bc9 /tools/lib/python/kdoc/python_version.py
parente1f46a09df93650288babb23de6e34bff73e80e6 (diff)
serial: 8250: drop err label from serial8250_register_8250_port()
serial8250_register_8250_port() holds serial_mutex using guard(), but still uses goto-based error handling. Mixing the two is discouraged by the cleanup guidelines. Move the part of the function which configures the found port into a new helper: __serial8250_register_8250_port(). It returns an int and uses plain returns on failures. The caller now resets uart->port.dev on failure at a single place, so the err label can go. While at it, simplify the mctrl_gpio_init() error handling: return PTR_ERR() directly and drop the else branch. No functional change intended. Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> Assisted-by: LLM Link: https://patch.msgid.link/baf799ad88f9ef43093ae96731f48a5e88d726dd.1791873876.git.jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions