crypto: atmel-sha204a - fix negated return value
PATCH 1/1 crypto: atmel-sha204a - fix negated return value
Fix negated variable return value.
Fixes e05ce444e9e5 ("crypto: atmel-sha204a - add reading from otp zone")
Reported-by Dan Carpenter <[email protected]>
Signed-off-by Lothar Rubusch <[email protected]>
--- drivers/crypto/atmel-sha204a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/atmel-sha204a.c +1 -1
@@ -106,7 +106,7 @@ static int atmel_sha204a_otp_read(struct i2c_client *client, u16 addr, u8 *otp)if (cmd.data[0 ] ==0xff ) {dev_err (&client->dev,"failed, device not ready\n" ); -return -ret; +return -EINVAL ; }memcpy (otp, cmd.data+1 ,4 );
Signature · 1 line
2.39.2
Quoted 6 lines · Lothar Rubusch
Fix negated variable return value.
Fixes e05ce444e9e5 ("crypto: atmel-sha204a - add reading from otp zone")Reported-by Dan Carpenter <[email protected]>Signed-off-by Lothar Rubusch <[email protected]>
Thanks!
Reviewed-by Dan Carpenter <[email protected]>
regards,
dan carpenter
Herbert Xu
maintainerQuoted 9 lines · Lothar Rubusch
Fix negated variable return value.
Fixes e05ce444e9e5 ("crypto: atmel-sha204a - add reading from otp zone")Reported-by Dan Carpenter <[email protected]>Signed-off-by Lothar Rubusch <[email protected]>--- drivers/crypto/atmel-sha204a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt