summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorWentao Liang <vulab@iscas.ac.cn>2025-01-21 11:48:18 +0300
committerAndi Shyti <andi.shyti@kernel.org>2025-03-22 15:11:53 +0300
commit39f8d63804505222dccf265797c2d03de7f2d5b3 (patch)
tree67da26396e8885a462385fd2bb162ca9fde2153f /tools/perf/scripts/python/gecko.py
parenta815975cbaeb4ab29f45312ef23be2871b2e8b82 (diff)
downloadlinux-39f8d63804505222dccf265797c2d03de7f2d5b3.tar.xz
i2c: iproc: Refactor prototype and remove redundant error checks
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@iscas.ac.cn> Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Acked-by: Ray Jui <ray.jui@broadcom.com> Link: https://lore.kernel.org/r/20250121084818.2719-1-vulab@iscas.ac.cn Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions