]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
Input: mxs-lradc - remove redundant assignment to pointer input
authorColin Ian King <colin.king@canonical.com>
Fri, 27 Oct 2017 22:29:24 +0000 (15:29 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 27 Oct 2017 22:48:00 +0000 (15:48 -0700)
The pointer 'input' is being initialized with ts->ts_input and this
value is not being read as it is updated a few lines later with the
return value from the call to devm_input_allocate_device. Remove the
redundant initialization assignment.  Cleans up clang warning:

drivers/input/touchscreen/mxs-lradc-ts.c:587:20: warning: Value Xi
stored to 'input' 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/touchscreen/mxs-lradc-ts.c

index 3707e927f770c8763c277768d0c872b87c4bf048..c850b517854e4a18578c2f3e5b36f10c64e72399 100644 (file)
@@ -584,7 +584,7 @@ static void mxs_lradc_ts_hw_init(struct mxs_lradc_ts *ts)
 
 static int mxs_lradc_ts_register(struct mxs_lradc_ts *ts)
 {
-       struct input_dev *input = ts->ts_input;
+       struct input_dev *input;
        struct device *dev = ts->dev;
 
        input = devm_input_allocate_device(dev);