]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: usblp: clean up assignment inside if conditions
authorDarshan Rathod <darshan.rathod@siqol.com>
Fri, 18 Jul 2025 09:10:45 +0000 (14:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jul 2025 14:30:54 +0000 (16:30 +0200)
commitd8e1ecffb4a282791be1b3d81a05541749b0db64
tree3f6d9a9dc57348571b22e0a54856562ef96e437c
parent323a80a1a5ace319a722909c006d5bdb2a35d273
usb: usblp: clean up assignment inside if conditions

This patch cleans up a few cases where assignments were made
inside of if conditions, like

if ((rv = func()) < 0)

into two lines, to improve readability and be more in-line with
Linux kernel coding style. It also cleans up checkpatch warnings
like:

ERROR: do not use assignment in if condition

No functional change, just a style and maintainability fix.

Signed-off-by: Darshan Rathod <darshan.rathod@siqol.com>
Link: https://lore.kernel.org/r/20250718091045.264129-1-darshan.rathod@siqol.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/usblp.c