]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86: dell_rbu: fix assignment in if condition warning
authorDarshan Rathod <darshanrathod475@gmail.com>
Fri, 1 Aug 2025 10:47:05 +0000 (16:17 +0530)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 11 Aug 2025 12:02:25 +0000 (15:02 +0300)
commit1ccc2e20fe1d3b91395de8ca9ce0efe070287534
tree1de3a20faf93dfe1f1abf67c0b20b58973d0d7ee
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
platform/x86: dell_rbu: fix assignment in if condition warning

Refactor to remove assignments from inside if conditions, as required
by kernel coding style. This improves code readability and resolves
checkpatch.pl warnings:

    ERROR: do not use assignment in if condition

Signed-off-by: Darshan Rathod <darshanrathod475@gmail.com>
Link: https://lore.kernel.org/r/20250801104705.1824495-1-darshanrathod475@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/dell/dell_rbu.c