Commit b89a9f2f authored by YueHaibing's avatar YueHaibing Committed by Dmitry Torokhov

Input: synaptics-rmi4 - remove set but not used variable 'sensor_flags'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/input/rmi4/rmi_f12.c: In function rmi_f12_read_sensor_tuning:
drivers/input/rmi4/rmi_f12.c:76:6: warning: variable sensor_flags set but not used [-Wunused-but-set-variable]

It's not used since introduction in
commit b43d2c1e ("Input: synaptics-rmi4 - add support for F12")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 66f4c776
...@@ -73,7 +73,6 @@ static int rmi_f12_read_sensor_tuning(struct f12_data *f12) ...@@ -73,7 +73,6 @@ static int rmi_f12_read_sensor_tuning(struct f12_data *f12)
int pitch_y = 0; int pitch_y = 0;
int rx_receivers = 0; int rx_receivers = 0;
int tx_receivers = 0; int tx_receivers = 0;
int sensor_flags = 0;
item = rmi_get_register_desc_item(&f12->control_reg_desc, 8); item = rmi_get_register_desc_item(&f12->control_reg_desc, 8);
if (!item) { if (!item) {
...@@ -129,10 +128,9 @@ static int rmi_f12_read_sensor_tuning(struct f12_data *f12) ...@@ -129,10 +128,9 @@ static int rmi_f12_read_sensor_tuning(struct f12_data *f12)
offset += 2; offset += 2;
} }
if (rmi_register_desc_has_subpacket(item, 4)) { /* Skip over sensor flags */
sensor_flags = buf[offset]; if (rmi_register_desc_has_subpacket(item, 4))
offset += 1; offset += 1;
}
sensor->x_mm = (pitch_x * rx_receivers) >> 12; sensor->x_mm = (pitch_x * rx_receivers) >> 12;
sensor->y_mm = (pitch_y * tx_receivers) >> 12; sensor->y_mm = (pitch_y * tx_receivers) >> 12;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment