Merge tag 'powerpc-6.5-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[linux-2.6-block.git] / crypto / keywrap.c
index 3517773bc7f732b06f947c238744d75ae70c7e80..054d9a216fc9f3dbabeecbdd12a28954b1e0fa5e 100644 (file)
@@ -114,9 +114,9 @@ static void crypto_kw_scatterlist_ff(struct scatter_walk *walk,
                        scatterwalk_start(walk, sg);
                        scatterwalk_advance(walk, skip);
                        break;
-               } else
-                       skip -= sg->length;
+               }
 
+               skip -= sg->length;
                sg = sg_next(sg);
        }
 }