summaryrefslogtreecommitdiff
path: root/drivers/char/mwave/tp3780i.c
diff options
context:
space:
mode:
authorjing yangyang <cgel.zte@gmail.com>2021-08-20 05:17:52 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-08-27 17:20:37 +0300
commitf8cefead37ddc111786b14da73286204eb8509b5 (patch)
tree8dd05c41d0ec1ae9354c604f3315ad48f0b576f2 /drivers/char/mwave/tp3780i.c
parent0be883a0d795d9146f5325de582584147dd0dcdc (diff)
downloadlinux-f8cefead37ddc111786b14da73286204eb8509b5.tar.xz
char: mware: fix returnvar.cocci warnings
Remove unneeded variables when "0" can be returned. Generated by: scripts/coccinelle/misc/returnvar.cocci Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: jing yangyang <jing.yangyang@zte.com.cn> Link: https://lore.kernel.org/r/20210820021752.10927-1-jing.yangyang@zte.com.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/mwave/tp3780i.c')
-rw-r--r--drivers/char/mwave/tp3780i.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/mwave/tp3780i.c b/drivers/char/mwave/tp3780i.c
index 8588b51202e5..83eaffeb22c8 100644
--- a/drivers/char/mwave/tp3780i.c
+++ b/drivers/char/mwave/tp3780i.c
@@ -470,8 +470,6 @@ int tp3780I_StartDSP(THINKPAD_BD_DATA * pBDData)
int tp3780I_QueryAbilities(THINKPAD_BD_DATA * pBDData, MW_ABILITIES * pAbilities)
{
- int retval = 0;
-
PRINTK_2(TRACE_TP3780I,
"tp3780i::tp3780I_QueryAbilities entry pBDData %p\n", pBDData);
@@ -502,7 +500,7 @@ int tp3780I_QueryAbilities(THINKPAD_BD_DATA * pBDData, MW_ABILITIES * pAbilities
PRINTK_1(TRACE_TP3780I,
"tp3780i::tp3780I_QueryAbilities exit retval=SUCCESSFUL\n");
- return retval;
+ return 0;
}
int tp3780I_ReadWriteDspDStore(THINKPAD_BD_DATA * pBDData, unsigned int uOpcode,