]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: tcpm: turn tcpm_ams_finish into void function
authorYang Li <yang.lee@linux.alibaba.com>
Mon, 8 Mar 2021 06:35:30 +0000 (14:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:37:18 +0000 (09:37 +0100)
commit10fef04c35fcdca3aa518cfa8c26f2593f065faa
tree9fa4bc479ec91633625dd4066d713ee8b018dacf
parent3907eea506517b54a49a79c99703cab8de4de36c
usb: typec: tcpm: turn tcpm_ams_finish into void function

This function always return '0' and no callers use the return value.
So make it a void function.

This eliminates the following coccicheck warning:
./drivers/usb/typec/tcpm/tcpm.c:778:5-8: Unneeded variable: "ret".
Return "0" on line 794

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/1615185330-118246-1-git-send-email-yang.lee@linux.alibaba.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpm.c