]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: talitos - Fix return type of current_desc_hdr()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 8 Oct 2020 09:34:56 +0000 (09:34 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Oct 2020 06:34:45 +0000 (17:34 +1100)
commit149bee21c4189b9221c00817b0e3dc323247dda7
treeb47f88d1018843b9c0615f97b3733368a509acc6
parent6dc81ffd1c04dfbecace6870a112c501688ebfcc
crypto: talitos - Fix return type of current_desc_hdr()

current_desc_hdr() returns a u32 but in fact this is a __be32,
leading to a lot of sparse warnings.

Change the return type to __be32 and ensure it is handled as
sure by the caller.

Fixes: 9967dbc005c0 ("crypto: talitos - handle descriptor not found in error path")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c