Eric Biggers 2a57c0be22 crypto: skcipher - remove unnecessary setting of walk->nbytes
Setting 'walk->nbytes = walk->total' in skcipher_walk_first() doesn't
make sense because actually walk->nbytes needs to be set to the length
of the first step in the walk, which may be less than walk->total.  This
is done by skcipher_walk_next() which is called immediately afterwards.
Also walk->nbytes was already set to 0 in skcipher_walk_skcipher(),
which is a better default value in case it's forgotten to be set later.

Therefore, remove the unnecessary assignment to walk->nbytes.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2018-08-03 18:06:04 +08:00
..
2018-05-26 09:16:44 +02:00
2018-05-26 09:16:44 +02:00
2017-11-03 21:35:35 +08:00
2018-04-21 00:58:34 +08:00
2018-04-21 00:58:34 +08:00
2018-04-21 00:58:34 +08:00
2018-04-21 00:58:34 +08:00
2018-07-20 13:51:21 +08:00
2018-04-21 00:58:34 +08:00
2018-05-16 07:23:35 +02:00
2018-02-22 22:16:54 +08:00
2018-04-21 00:58:30 +08:00