提交 b53d7508 编写于 作者: D Dmitry Torokhov

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: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 c37f6d38
...@@ -957,7 +957,6 @@ static int cyapa_gen3_set_power_mode(struct cyapa *cyapa, u8 power_mode, ...@@ -957,7 +957,6 @@ static int cyapa_gen3_set_power_mode(struct cyapa *cyapa, u8 power_mode,
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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册