crypto: bfin_crc - replace sg_count by sg_nents
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Fri, 18 Sep 2015 12:57:09 +0000 (14:57 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 21 Sep 2015 15:05:53 +0000 (23:05 +0800)
commit1f6d79d7e011ff0b85feaecf0aed0b3949eaa1f2
tree8e87399e9832df1df43332cb485aee131e736b87
parentbe6ec98ddb6749bba0fc7f67bd2f89a2396805de
crypto: bfin_crc - replace sg_count by sg_nents

The sg_count function in bfin_crc.c is the same function as sg_nents.
Remove the duplicate code and use sg_nents() instead.

Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/bfin_crc.c