diff mbox series

crypto: atmel-i2c - Simplify return code in probe function

Message ID 20220429140349.215732-1-u.kleine-koenig@pengutronix.de (mailing list archive)
State Accepted
Delegated to: Herbert Xu
Headers show
Series crypto: atmel-i2c - Simplify return code in probe function | expand

Commit Message

Uwe Kleine-König April 29, 2022, 2:03 p.m. UTC
There is no semantical change introduced by this change.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/crypto/atmel-i2c.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

Comments

Claudiu Beznea May 4, 2022, 7:33 a.m. UTC | #1
On 29.04.2022 17:03, Uwe Kleine-König wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> 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>


> ---
>  drivers/crypto/atmel-i2c.c | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/drivers/crypto/atmel-i2c.c b/drivers/crypto/atmel-i2c.c
> index 6fd3e969211d..384865ef96ce 100644
> --- a/drivers/crypto/atmel-i2c.c
> +++ b/drivers/crypto/atmel-i2c.c
> @@ -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);
> 
> --
> 2.35.1
>
Herbert Xu May 6, 2022, 10:22 a.m. UTC | #2
On Fri, Apr 29, 2022 at 04:03:49PM +0200, Uwe Kleine-König wrote:
> There is no semantical change introduced by this change.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  drivers/crypto/atmel-i2c.c | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)

Patch applied.  Thanks.
diff mbox series

Patch

diff --git a/drivers/crypto/atmel-i2c.c b/drivers/crypto/atmel-i2c.c
index 6fd3e969211d..384865ef96ce 100644
--- a/drivers/crypto/atmel-i2c.c
+++ b/drivers/crypto/atmel-i2c.c
@@ -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);