]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: sm750fb: avoid chained assignment in setcolreg()
authorCristian Del Gobbo <cristiandelgobbo87@gmail.com>
Sun, 2 Nov 2025 23:01:39 +0000 (00:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Nov 2025 02:19:02 +0000 (11:19 +0900)
commit23413fe138e05eef7f7cc86eaf2acf7ab7d8a628
treec585248344903166b86c6f9966edacb8b454e0c3
parent3a3fd27e06c38933f248eddf8e2ca328c24f0b07
staging: sm750fb: avoid chained assignment in setcolreg()

Replace the chained assignment of red/green/blue with a temporary
variable and braces. This keeps behavior identical while improving
readability and satisfying checkpatch.

No functional change intended.

Signed-off-by: Cristian Del Gobbo <cristiandelgobbo87@gmail.com>
Link: https://patch.msgid.link/20251102230139.1720-2-cristiandelgobbo87@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750.c