crypto: omap - Stop using crypto scatterwalk_bytes_sglen
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 12 Jul 2016 05:17:52 +0000 (13:17 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 18 Jul 2016 09:35:48 +0000 (17:35 +0800)
commit7c001a8650e67cb293120044c3f62756258ed27c
tree3e9746ad358e23a0380f38a5a11005927951e4da
parent3a01d0ee2b991c8c267620e63a4ab47cd8c30cc4
crypto: omap - Stop using crypto scatterwalk_bytes_sglen

We already have a generic function sg_nents_for_len which does
the same thing.  This patch switches omap over to it and also
adds error handling in case the SG list is short.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-aes.c
drivers/crypto/omap-des.c