Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

char/mwave: remove redundant initialization of variable bRC

The variable bRC is being initialized with a value that is never read
and it is being updated later with a new value. The initialization is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200611152708.927344-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
7ca78630 87758935

+2 -2
+2 -2
drivers/char/mwave/smapi.c
··· 126 126 127 127 int smapi_query_DSP_cfg(SMAPI_DSP_SETTINGS * pSettings) 128 128 { 129 - int bRC = -EIO; 129 + int bRC; 130 130 unsigned short usAX, usBX, usCX, usDX, usDI, usSI; 131 131 static const unsigned short ausDspBases[] = { 132 132 0x0030, 0x4E30, 0x8E30, 0xCE30, ··· 497 497 498 498 int smapi_set_DSP_power_state(bool bOn) 499 499 { 500 - int bRC = -EIO; 500 + int bRC; 501 501 unsigned short usAX, usBX, usCX, usDX, usDI, usSI; 502 502 unsigned short usPowerFunction; 503 503