diff options
Diffstat (limited to 'lib/mpi/mpicoder.c')
-rw-r--r-- | lib/mpi/mpicoder.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/mpi/mpicoder.c b/lib/mpi/mpicoder.c index a9f1097c18cb..747606f9e4a3 100644 --- a/lib/mpi/mpicoder.c +++ b/lib/mpi/mpicoder.c | |||
@@ -484,9 +484,6 @@ MPI mpi_read_raw_from_sgl(struct scatterlist *sgl, unsigned int nbytes) | |||
484 | const u8 *buffer = sg_virt(sg) + lzeros; | 484 | const u8 *buffer = sg_virt(sg) + lzeros; |
485 | int len = sg->length - lzeros; | 485 | int len = sg->length - lzeros; |
486 | 486 | ||
487 | if (sg_is_last(sg) && (len % BYTES_PER_MPI_LIMB)) | ||
488 | len += BYTES_PER_MPI_LIMB - (len % BYTES_PER_MPI_LIMB); | ||
489 | |||
490 | for (x = 0; x < len; x++) { | 487 | for (x = 0; x < len; x++) { |
491 | a <<= 8; | 488 | a <<= 8; |
492 | a |= *buffer++; | 489 | a |= *buffer++; |