]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
crypto: atmel-sha204a - Drop redundant I2C_FUNC_I2C check
authorThorsten Blum <thorsten.blum@linux.dev>
Wed, 4 Mar 2026 08:24:02 +0000 (09:24 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 15 Mar 2026 04:23:12 +0000 (13:23 +0900)
atmel_i2c_probe() already verifies I2C_FUNC_I2C - remove the redundant
check in atmel_sha204a_probe().

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-sha204a.c

index f9c7a4206774bac368cab78b7278ac47b9818d43..691531647fd65698d39a9419b7fe739a449e3436 100644 (file)
@@ -181,10 +181,6 @@ static int atmel_sha204a_probe(struct i2c_client *client)
        if (ret)
                dev_warn(&client->dev, "failed to register RNG (%d)\n", ret);
 
-       /* otp read out */
-       if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C))
-               return -ENODEV;
-
        ret = sysfs_create_group(&client->dev.kobj, &atmel_sha204a_groups);
        if (ret) {
                dev_err(&client->dev, "failed to register sysfs entry\n");