Commit 4dc24985 authored by Jiri Slaby (SUSE)'s avatar Jiri Slaby (SUSE) Committed by Treehugger Robot
Browse files

UPSTREAM: 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: default avatarJiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230420093514.13055-1-jirislaby@kernel.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 370629635
Change-Id: I297af26a5d1eeac9d1886582a09d917efce6a7bf
(cherry picked from commit 5c7e105c)
Signed-off-by: default avatarPraveen Talari <quic_ptalari@quicinc.com>
parent 719b876f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment