]> git.ipfire.org Git - thirdparty/linux.git/commit
i2c: pcf8584: Fix do not use assignment inside if conditional
authorCezar Chiru <chiru.cezar.89@gmail.com>
Sat, 18 Oct 2025 09:12:57 +0000 (12:12 +0300)
committerAndi Shyti <andi.shyti@kernel.org>
Mon, 27 Oct 2025 13:17:15 +0000 (14:17 +0100)
commit2e38abef127da288666c8d25a1290e5e1af0d395
tree18ac98137dddbf7354894c35808f5636dc0850bc
parentfaef2789bdb40067523563d414d5eb611c535cab
i2c: pcf8584: Fix do not use assignment inside if conditional

Assign inside of 'if' conditional is not allowed. Move assignment from
inside 'if' conditional, to one line before each 'if'conditional statement
that caused errors.
Enforce errors fixing based on checkpatch.pl output on file.

Signed-off-by: Cezar Chiru <chiru.cezar.89@gmail.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20251018091258.5266-3-chiru.cezar.89@gmail.com
drivers/i2c/algos/i2c-algo-pcf.c