Input: cyapa - do not set otherwise unused variable
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 15 Apr 2015 00:46:43 +0000 (17:46 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 21 May 2015 22:59:23 +0000 (15:59 -0700)
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>
drivers/input/mouse/cyapa_gen3.c

index 1e2291c378feb8856b319dc5c2e6492360de1ada..3faf01c1b191115501cecd94c0bec7dcce19c7a8 100644 (file)
@@ -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.
  */
 static int cyapa_gen3_set_power_mode(struct cyapa *cyapa, u8 power_mode,
-               u16 always_unused)
+                                    u16 always_unused)
 {
        int ret;
        u8 power;
        int tries;
        u16 sleep_time;
 
-       always_unused = 0;
        if (cyapa->state != CYAPA_STATE_OP)
                return 0;