crypto: atmel-ecc - fix signed integer to u8 assignment
authorTudor-Dan Ambarus <tudor.ambarus@microchip.com>
Thu, 20 Jul 2017 13:35:49 +0000 (16:35 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 3 Aug 2017 05:47:23 +0000 (13:47 +0800)
commit6d2bce6a15753710836f99054826d5ae638dd04a
treede24259bdbfaef700e51e3aa0373b67cc2a307e4
parent952035baedb15d956d5f25b34287d728c751cac9
crypto: atmel-ecc - fix signed integer to u8 assignment

static checker warning:
        drivers/crypto/atmel-ecc.c:281 atmel_ecdh_done()
        warn: assigning (-22) to unsigned variable 'status'

Similar warning can be raised in atmel_ecc_work_handler()
when atmel_ecc_send_receive() returns an error. Fix this too.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-ecc.c