[PATCH v2] i2c: iproc: Refactor prototype and remove redundant error checks

Uwe Kleine-König u.kleine-koenig at baylibre.com
Tue Jan 21 09:50:19 PST 2025


Hello,

On Tue, Jan 21, 2025 at 04:48:18PM +0800, Wentao Liang wrote:
> The bcm_iproc_i2c_init() always returns 0. As a result, there
> is no need to check its return value or handle errors.
> 
> This patch changes the prototype of bcm_iproc_i2c_init() to
> return void and removes the redundant error handling code after
> calls to bcm_iproc_i2c_init() in both the bcm_iproc_i2c_probe()
> and bcm_iproc_i2c_resume().
> 
> Signed-off-by: Wentao Liang <vulab at iscas.ac.cn>

LGTM:

Acked-by: Uwe Kleine-König <u.kleine-koenig at baylibre.com>

Best regards
Uwe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20250121/b1a9d3f7/attachment.sig>


More information about the linux-arm-kernel mailing list