[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160504040944.GA25781@gondor.apana.org.au>
Date: Wed, 4 May 2016 12:09:44 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Muhammad Falak R Wani <falakreyaz@...il.com>
Cc: davem@...emloft.net, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] crypto: algif_skcipher: replace sg++ with sg_next()
Muhammad Falak R Wani <falakreyaz@...il.com> 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@...il.com>
No please the only difference between sg_next and sg++ is chaining,
which is irrelevant here.
Patch rejected.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists