[PATCH] lib/sg_split: remove setting of offset to zero

From: vcxzasdfvcxz
Date: Thu Jan 23 2020 - 15:55:38 EST


By setting offset to zero we are losing where in the page the memory is.

--- a/lib/sg_split.c
+++ b/lib/sg_split.c
@@ -88,8 +88,6 @@ static void sg_split_phys(struct sg_splitter *splitters, const int nb_splits)
if (!j) {
out_sg->offset += split->skip_sg0;
out_sg->length -= split->skip_sg0;
- } else {
- out_sg->offset = 0;
}
sg_dma_address(out_sg) = 0;
sg_dma_len(out_sg) = 0;