Input: cyapa - do not set otherwise unused variable
As the name suggests, always_unused argument in cyapa_gen3_set_power_mode() is never used, so there is no reason for setting it to 0. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
c37f6d3879
commit
b53d750884
|
@ -950,14 +950,13 @@ static u16 cyapa_get_wait_time_for_pwr_cmd(u8 pwr_mode)
|
||||||
* Device power mode can only be set when device is in operational mode.
|
* Device power mode can only be set when device is in operational mode.
|
||||||
*/
|
*/
|
||||||
static int cyapa_gen3_set_power_mode(struct cyapa *cyapa, u8 power_mode,
|
static int cyapa_gen3_set_power_mode(struct cyapa *cyapa, u8 power_mode,
|
||||||
u16 always_unused)
|
u16 always_unused)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
u8 power;
|
u8 power;
|
||||||
int tries;
|
int tries;
|
||||||
u16 sleep_time;
|
u16 sleep_time;
|
||||||
|
|
||||||
always_unused = 0;
|
|
||||||
if (cyapa->state != CYAPA_STATE_OP)
|
if (cyapa->state != CYAPA_STATE_OP)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue