Input: elantech - remove redundant assignments to variable error
authorColin Ian King <colin.king@canonical.com>
Tue, 7 Jul 2020 00:38:16 +0000 (17:38 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 7 Jul 2020 00:53:33 +0000 (17:53 -0700)
commit05b8465025466f30300941a16d4bbf53c755c3f1
treefebd2795d584e0e7e657f979819d470ff2d171a7
parentd0ac7079d5fcaaaf3eb99c197a08ac1b399754f4
Input: elantech - remove redundant assignments to variable error

The variable error is being initialized with a value that is
never read and it is being updated later with a new value. The
initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200603140431.131347-1-colin.king@canonical.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elantech.c