OSDN Git Service

tty: serial: simplify qcom_geni_serial_send_chunk_fifo()
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Thu, 20 Apr 2023 09:35:14 +0000 (11:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 11:32:51 +0000 (13:32 +0200)
commit5c7e105cd156fc9adf5294a83623d7a40c15f9b9
tree92932c0be88a8b509e802024dc7f1a5f12f9710d
parent254d5a59464eea1324353d84c0f614c413e8e54f
tty: serial: simplify qcom_geni_serial_send_chunk_fifo()

* use memcpy() instead of the loop (removes c variable)
* use remaining parameter directly (removes chunk variable)

The code is simpler and easier to follow.

Cc: Andy Gross <agross@kernel.org>
Cc: Bjorn Andersson <andersson@kernel.org>
Cc: Konrad Dybcio <konrad.dybcio@linaro.org>
Cc: linux-arm-msm@vger.kernel.org
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230420093514.13055-1-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c