]> git.ipfire.org Git - thirdparty/linux.git/commit
i2c: pcf8584: Move 'ret' variable inside for loop, goto out if ret < 0.
authorCezar Chiru <chiru.cezar.89@gmail.com>
Thu, 23 Oct 2025 12:00:41 +0000 (15:00 +0300)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 28 Oct 2025 16:05:16 +0000 (17:05 +0100)
commit11cb461c2ebb5588ec11c75228c309619df551df
treec2d7c0e6aa94c556b1c7a7d536715de35aa091a3
parentd3429178ee51dd7155445d15a5ab87a45fae3c73
i2c: pcf8584: Move 'ret' variable inside for loop, goto out if ret < 0.

Require spaces around '=' and '<'. Add spaces around binary operators.
Enforce error fixing based on checkpatch.pl output on file.
Move 'ret' variable inside for loop. Then check if (ret < 0) goto out. This
improves usage of ret variable.

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/20251023120043.8661-2-chiru.cezar.89@gmail.com
drivers/i2c/algos/i2c-algo-pcf.c