diff options
author | Jiri Slaby (SUSE) <jirislaby@kernel.org> | 2023-04-20 11:35:14 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-04-20 13:32:51 +0200 |
commit | 5c7e105cd156fc9adf5294a83623d7a40c15f9b9 (patch) | |
tree | 92932c0be88a8b509e802024dc7f1a5f12f9710d /drivers/tty/synclink_gt.c | |
parent | tty: n_gsm: fix redundant assignment of gsm->encoding (diff) | |
download | linux-5c7e105cd156fc9adf5294a83623d7a40c15f9b9.tar.xz linux-5c7e105cd156fc9adf5294a83623d7a40c15f9b9.zip |
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>
Diffstat (limited to 'drivers/tty/synclink_gt.c')
0 files changed, 0 insertions, 0 deletions