unsigned long addr;
        int i, j;
 
+       /*
+        * The first rqst has a transform header where the first 20 bytes are
+        * not part of the encrypted blob.
+        */
+       skip = 20;
+
        /* Assumes the first rqst has a transform header as the first iov.
         * I.e.
         * rqst[0].rq_iov[0]  is transform header
         * rqst[1+].rq_iov[0+] data to be encrypted/decrypted
         */
        for (i = 0; i < num_rqst; i++) {
-               /*
-                * The first rqst has a transform header where the
-                * first 20 bytes are not part of the encrypted blob.
-                */
                for (j = 0; j < rqst[i].rq_nvec; j++) {
                        struct kvec *iov = &rqst[i].rq_iov[j];
 
-                       skip = (i == 0) && (j == 0) ? 20 : 0;
                        addr = (unsigned long)iov->iov_base + skip;
                        if (unlikely(is_vmalloc_addr((void *)addr))) {
                                len = iov->iov_len - skip;
                        } else {
                                nents++;
                        }
+                       skip = 0;
                }
                nents += rqst[i].rq_npages;
        }