OpenCloudOS-Kernel/drivers/macintosh/ams
Minghao Chi e9bb94cde1 macintosh/ams: Remove unneeded result variable
Return the value from i2c_add_driver() directly instead of storing it in
another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: CGEL ZTE <cgel.zte@gmail.com>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220118075252.925616-1-chi.minghao@zte.com.cn
2022-05-04 19:37:45 +10:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
ams-core.c macintosh/ams: Replace snprintf in show functions with sysfs_emit 2022-05-04 19:37:45 +10:00
ams-i2c.c macintosh/ams: Remove unneeded result variable 2022-05-04 19:37:45 +10:00
ams-input.c macintosh/ams-input: switch to using input device polling mode 2020-05-28 23:24:32 +10:00
ams-pmu.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
ams.h macintosh/ams-input: switch to using input device polling mode 2020-05-28 23:24:32 +10:00