char/mwave: turn tp3780I_Cleanup() into void function
authorYang Li <yang.lee@linux.alibaba.com>
Wed, 10 Mar 2021 09:00:34 +0000 (17:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Mar 2021 07:26:30 +0000 (08:26 +0100)
commitf6d706dd9baaa1d7857ce5b03af491718a95e9bf
treeadcb706aaaa30a0801d850584a5fdc1fe7bcd91f
parent1c15b334ca34dd22a19e1c595908fc860523be64
char/mwave: turn tp3780I_Cleanup() 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/char/mwave/tp3780i.c:182:5-11: Unneeded variable: "retval".
Return "0" on line 187

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/1615366834-20545-1-git-send-email-yang.lee@linux.alibaba.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/mwave/tp3780i.c
drivers/char/mwave/tp3780i.h