* [PATCH] crypto: atmel-i2c - Simplify return code in probe function
@ 2022-04-29 14:03 ` Uwe Kleine-König
0 siblings, 0 replies; 6+ messages in thread
From: Uwe Kleine-König @ 2022-04-29 14:03 UTC (permalink / raw)
To: Herbert Xu, David S. Miller, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea
Cc: linux-crypto, linux-arm-kernel, kernel
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(-)
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
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] crypto: atmel-i2c - Simplify return code in probe function
@ 2022-04-29 14:03 ` Uwe Kleine-König
0 siblings, 0 replies; 6+ messages in thread
From: Uwe Kleine-König @ 2022-04-29 14:03 UTC (permalink / raw)
To: Herbert Xu, David S. Miller, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea
Cc: linux-crypto, linux-arm-kernel, kernel
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(-)
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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] crypto: atmel-i2c - Simplify return code in probe function
2022-04-29 14:03 ` Uwe Kleine-König
@ 2022-05-04 7:33 ` Claudiu.Beznea
-1 siblings, 0 replies; 6+ messages in thread
From: Claudiu.Beznea @ 2022-05-04 7:33 UTC (permalink / raw)
To: u.kleine-koenig, herbert, davem, Nicolas.Ferre, alexandre.belloni
Cc: linux-crypto, linux-arm-kernel, kernel
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
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] crypto: atmel-i2c - Simplify return code in probe function
@ 2022-05-04 7:33 ` Claudiu.Beznea
0 siblings, 0 replies; 6+ messages in thread
From: Claudiu.Beznea @ 2022-05-04 7:33 UTC (permalink / raw)
To: u.kleine-koenig, herbert, davem, Nicolas.Ferre, alexandre.belloni
Cc: linux-crypto, linux-arm-kernel, kernel
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
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] crypto: atmel-i2c - Simplify return code in probe function
2022-04-29 14:03 ` Uwe Kleine-König
@ 2022-05-06 10:22 ` Herbert Xu
-1 siblings, 0 replies; 6+ messages in thread
From: Herbert Xu @ 2022-05-06 10:22 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: David S. Miller, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea, linux-crypto, linux-arm-kernel, kernel
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.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] crypto: atmel-i2c - Simplify return code in probe function
@ 2022-05-06 10:22 ` Herbert Xu
0 siblings, 0 replies; 6+ messages in thread
From: Herbert Xu @ 2022-05-06 10:22 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Alexandre Belloni, David S. Miller, linux-crypto, kernel,
Claudiu Beznea, linux-arm-kernel
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.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-05-06 10:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-29 14:03 [PATCH] crypto: atmel-i2c - Simplify return code in probe function Uwe Kleine-König
2022-04-29 14:03 ` Uwe Kleine-König
2022-05-04 7:33 ` Claudiu.Beznea
2022-05-04 7:33 ` Claudiu.Beznea
2022-05-06 10:22 ` Herbert Xu
2022-05-06 10:22 ` Herbert Xu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.