Input: cyapa - remove redundant assignment to 'pwr_cmd'
authorColin Ian King <colin.king@canonical.com>
Thu, 18 Jan 2018 19:22:11 +0000 (11:22 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 18 Jan 2018 19:39:49 +0000 (11:39 -0800)
commitdeb106beb7efebd43a98d0fa84b3709a862da20c
tree2978c55dd62a24d578098e686cdb4ff2c0d088ed
parent0de45027257bbae71a78240af4903d08447a669c
Input: cyapa - remove redundant assignment to 'pwr_cmd'

The variable pwr_cmd is being assigned to cyapa->suspend_power_mode
twice, once during the declaration and once after taking an
interruptible mutex lock.  Remove the redundant first assignment
since the value is never read and it is outside the mutex lock.

Cleans up clang warning:
drivers/input/mouse/cyapa.c:743:5: warning: Value stored to 'pwr_cmd'
during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/cyapa.c