Re: [PATCH] crypto: algif_skcipher: replace sg++ with sg_next()

From: Herbert Xu
Date: Wed May 04 2016 - 00:09:53 EST


Muhammad Falak R Wani <falakreyaz@xxxxxxxxx> wrote:
> Never use sg++, always use sg = sg_next(sg). Scatterlist entries can
> be combined if the memory is contiguous but sg++ won't know about
> that. It sure would run on the slower side.
> But regardless, sg++ should never be used, only sg_next is safe.
>
> Signed-off-by: Muhammad Falak R Wani <falakreyaz@xxxxxxxxx>

No please the only difference between sg_next and sg++ is chaining,
which is irrelevant here.

Patch rejected.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt