crypto: atmel-i2c - Simplify return code in probe function
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 29 Apr 2022 14:03:49 +0000 (16:03 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 6 May 2022 10:16:55 +0000 (18:16 +0800)
There is no semantical change introduced by this change.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-i2c.c

index 6fd3e96..384865e 100644 (file)
@@ -364,11 +364,7 @@ int atmel_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id)
 
        i2c_set_clientdata(client, i2c_priv);
 
-       ret = device_sanity_check(client);
-       if (ret)
-               return ret;
-
-       return 0;
+       return device_sanity_check(client);
 }
 EXPORT_SYMBOL(atmel_i2c_probe);