crypto: talitos - simplify tests in ipsec_esp()
authorLEROY Christophe <christophe.leroy@c-s.fr>
Fri, 6 Oct 2017 13:04:59 +0000 (15:04 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Oct 2017 14:55:33 +0000 (22:55 +0800)
commit9a655608a468535cd15eafff5ef93e2656e6e2fc
treeba331727b7b6120897779cafec9ba930bf95f560
parentda9de146ebd99e162c4724ebce46a2bf2bc06085
crypto: talitos - simplify tests in ipsec_esp()

Do (desc->hdr & DESC_HDR_TYPE_IPSEC_ESP) only once.
Limit number of if/else paths

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c