Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b53d7508 authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

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: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent c37f6d38
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -957,7 +957,6 @@ static int cyapa_gen3_set_power_mode(struct cyapa *cyapa, u8 power_mode,
	int tries;
	u16 sleep_time;

	always_unused = 0;
	if (cyapa->state != CYAPA_STATE_OP)
		return 0;