diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-05 19:22:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-05 19:22:03 +0000 |
commit | 4fe40b02212fc6ae213fa2082322c3401433a0a3 (patch) | |
tree | e1bf3b779c1dc9c5337c4442bf720073a3a53415 /drivers/input | |
parent | Adding upstream version 6.9.7. (diff) | |
download | linux-4fe40b02212fc6ae213fa2082322c3401433a0a3.tar.xz linux-4fe40b02212fc6ae213fa2082322c3401433a0a3.zip |
Adding upstream version 6.9.8.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/touchscreen/ili210x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/ili210x.c b/drivers/input/touchscreen/ili210x.c index 31ffdc2a93..79bdb2b109 100644 --- a/drivers/input/touchscreen/ili210x.c +++ b/drivers/input/touchscreen/ili210x.c @@ -261,8 +261,8 @@ static int ili251x_read_touch_data(struct i2c_client *client, u8 *data) if (!error && data[0] == 2) { error = i2c_master_recv(client, data + ILI251X_DATA_SIZE1, ILI251X_DATA_SIZE2); - if (error >= 0 && error != ILI251X_DATA_SIZE2) - error = -EIO; + if (error >= 0) + error = error == ILI251X_DATA_SIZE2 ? 0 : -EIO; } return error; |