tty: serial: fsl_lpuart: remove sg_set_buf() for sport->rx_sgl
authorFugang Duan <fugang.duan@nxp.com>
Wed, 17 Jul 2019 05:19:29 +0000 (13:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 10:43:45 +0000 (12:43 +0200)
commit638341d5dbd11f057a9b00176ade767b08a9e95f
treeea21497749ebf0db57ad5f99ff6cfcc98f5557c9
parentca8d92f6d3ddc24140554c24dcbe0a43759f37d7
tty: serial: fsl_lpuart: remove sg_set_buf() for sport->rx_sgl

Since .sg_init_one() already set sg entry page like below code.
sg_init_one()
sg_init_table(sg, 1);
sg_set_buf(sg, buf, buflen);

So it should not set sg entry page again, remove the redundant code.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Link: https://lore.kernel.org/r/20190717051930.15514-5-fugang.duan@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c