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>
This commit is contained in:
parent
8775893502
commit
7ca78630a1
|
@ -126,7 +126,7 @@ static int smapi_request(unsigned short inBX, unsigned short inCX,
|
||||||
|
|
||||||
int smapi_query_DSP_cfg(SMAPI_DSP_SETTINGS * pSettings)
|
int smapi_query_DSP_cfg(SMAPI_DSP_SETTINGS * pSettings)
|
||||||
{
|
{
|
||||||
int bRC = -EIO;
|
int bRC;
|
||||||
unsigned short usAX, usBX, usCX, usDX, usDI, usSI;
|
unsigned short usAX, usBX, usCX, usDX, usDI, usSI;
|
||||||
static const unsigned short ausDspBases[] = {
|
static const unsigned short ausDspBases[] = {
|
||||||
0x0030, 0x4E30, 0x8E30, 0xCE30,
|
0x0030, 0x4E30, 0x8E30, 0xCE30,
|
||||||
|
@ -497,7 +497,7 @@ exit_smapi_request_error:
|
||||||
|
|
||||||
int smapi_set_DSP_power_state(bool bOn)
|
int smapi_set_DSP_power_state(bool bOn)
|
||||||
{
|
{
|
||||||
int bRC = -EIO;
|
int bRC;
|
||||||
unsigned short usAX, usBX, usCX, usDX, usDI, usSI;
|
unsigned short usAX, usBX, usCX, usDX, usDI, usSI;
|
||||||
unsigned short usPowerFunction;
|
unsigned short usPowerFunction;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue