crypto: skcipher - remove unnecessary setting of walk->nbytes
[sfrench/cifs-2.6.git] / crypto / skcipher.c
index 0fe2a2923ad0b0d02da50c3b0464258d987e13ec..835e5d36ad59e0d53e11e652881a57a895e76498 100644 (file)
@@ -387,7 +387,6 @@ set_phys_lowmem:
        }
        return err;
 }
-EXPORT_SYMBOL_GPL(skcipher_walk_next);
 
 static int skcipher_copy_iv(struct skcipher_walk *walk)
 {
@@ -399,7 +398,7 @@ static int skcipher_copy_iv(struct skcipher_walk *walk)
        unsigned size;
        u8 *iv;
 
-       aligned_bs = ALIGN(bs, alignmask);
+       aligned_bs = ALIGN(bs, alignmask + 1);
 
        /* Minimum size to align buffer by alignmask. */
        size = alignmask & ~a;
@@ -437,7 +436,6 @@ static int skcipher_walk_first(struct skcipher_walk *walk)
        }
 
        walk->page = NULL;
-       walk->nbytes = walk->total;
 
        return skcipher_walk_next(walk);
 }