]> asedeno.scripts.mit.edu Git - linux.git/commit
crypto: inside-secure - fix an error handling path in safexcel_probe()
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Tue, 15 Aug 2017 19:33:24 +0000 (21:33 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 22 Aug 2017 06:54:55 +0000 (14:54 +0800)
commitb7d65fe18129e2f557c31126fe6623e8c2731528
treee10b71b65bec48cc0c29e767ee240a3c8b95a97d
parent5a7801f6634b1e2888bcb1a85bedc50e46dcd757
crypto: inside-secure - fix an error handling path in safexcel_probe()

'ret' is known to be 0 at this point.
If 'safexcel_request_ring_irq()' fails, it returns an error code.
Return this value instead of 0 which means success.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel.c