diff options
| author | Eric Biggers <[email protected]> | 2018-07-23 17:21:29 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2018-08-03 10:06:04 +0000 |
| commit | 2a57c0be225f8c7140f8791819f5afbb6fb34c5a (patch) | |
| tree | e254a27967c8b610ad6593a1c95ea193be9a759a /lib/mpi/mpi-pow.c | |
| parent | crypto: scatterwalk - remove scatterwalk_samebuf() (diff) | |
| download | kernel-2a57c0be225f8c7140f8791819f5afbb6fb34c5a.tar.gz kernel-2a57c0be225f8c7140f8791819f5afbb6fb34c5a.zip | |
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 <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-pow.c')
0 files changed, 0 insertions, 0 deletions
