diff options
| author | Thorsten Blum <blum@kernel.org> | 2026-09-09 10:20:55 +0200 |
|---|---|---|
| committer | Andi Shyti <andi.shyti@kernel.org> | 2026-09-09 18:26:27 +0200 |
| commit | 95bfa7c11ad43e86e2e16e1d5e8aafba19703392 (patch) | |
| tree | e8339ae8c31383c7a3c267abc15519655b284035 | |
| parent | cba655492c205f3e65b5fe94ae5bb2a8ced3170b (diff) | |
| download | linux-next-95bfa7c11ad43e86e2e16e1d5e8aafba19703392.tar.gz linux-next-95bfa7c11ad43e86e2e16e1d5e8aafba19703392.zip | |
media: i2c: isl7998x: Inline i2c_check_functionality() check
Inline the i2c_check_functionality() check, since the function returns a
boolean status rather than an error code.
Reviewed-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Thorsten Blum <blum@kernel.org>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://patch.msgid.link/20260909082053.410739-4-blum@kernel.org
| -rw-r--r-- | drivers/media/i2c/isl7998x.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/i2c/isl7998x.c b/drivers/media/i2c/isl7998x.c index a77538d2343c..8244d4296a02 100644 --- a/drivers/media/i2c/isl7998x.c +++ b/drivers/media/i2c/isl7998x.c @@ -1460,8 +1460,7 @@ static int isl7998x_probe(struct i2c_client *client) int nr_inputs; int ret; - ret = i2c_check_functionality(adapter, I2C_FUNC_SMBUS_WORD_DATA); - if (!ret) { + if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_WORD_DATA)) { dev_warn(&adapter->dev, "I2C-Adapter doesn't support I2C_FUNC_SMBUS_WORD\n"); return -EIO; |
