]> www.infradead.org Git - users/willy/xarray.git/commit
i2c: npcm7xx: Remove redundant ret variable
authorZhang Songyi <zhang.songyi@zte.com.cn>
Thu, 20 Mar 2025 00:43:21 +0000 (01:43 +0100)
committerAndi Shyti <andi@smida.it>
Mon, 19 May 2025 20:23:54 +0000 (22:23 +0200)
commit5a1934f1c23feb525facdfa643600124a611c974
treefb20c91f8a0adf0913deabae3385cacd3ec3593e
parentdb5194b793d5c40e1a510989bf4199c261b291ea
i2c: npcm7xx: Remove redundant ret variable

Return value from npcm_i2c_get_slave_addr() directly instead of taking
this in another redundant variable.

This improvement has been suggested by Zeal Robot <zealci@zte.com.cn>

Signed-off-by: Zhang Songyi <zhang.songyi@zte.com.cn>
Link: https://lore.kernel.org/r/20250320004321.1914366-1-andi.shyti@kernel.org
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-npcm7xx.c