Skip to content

Commit 16bbb59

Browse files
tobluxdtor
authored andcommitted
Input: qt1070 - inline i2c_check_functionality check
Inline the i2c_check_functionality() check, since the function returns a boolean status rather than an error code. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://patch.msgid.link/20260408141926.1181389-4-thorsten.blum@linux.dev Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 512b0f4 commit 16bbb59

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/input/keyboard/qt1070.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ static int qt1070_probe(struct i2c_client *client)
133133
int i;
134134
int err;
135135

136-
err = i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE);
137-
if (!err) {
136+
if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE)) {
138137
dev_err(&client->dev, "%s adapter not supported\n",
139138
dev_driver_string(&client->adapter->dev));
140139
return -ENODEV;

0 commit comments

Comments
 (0)