summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorBernard Zhao <bernard@vivo.com>2020-05-06 05:33:55 -0700
committerChun-Kuang Hu <chunkuang.hu@kernel.org>2020-05-21 00:10:08 +0800
commit3cda3d31c50cb03d41880d8c5d83ed16e16b3a9d (patch)
tree932fa5ba42137b7de3c2e555a78b0dac523d21b9 /drivers/gpu
parent9a67bc4aac82d18132e8a5677926f05d43e44e77 (diff)
downloadlinux-3cda3d31c50cb03d41880d8c5d83ed16e16b3a9d.tar.bz2
drm/mediatek: Cleanup coding style in mediatek a bit
This code change is to make code bit more readable. Signed-off-by: Bernard Zhao <bernard@vivo.com> Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/mediatek/mtk_hdmi.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi.c b/drivers/gpu/drm/mediatek/mtk_hdmi.c
index ff43a3d80410..43e9876fd50c 100644
--- a/drivers/gpu/drm/mediatek/mtk_hdmi.c
+++ b/drivers/gpu/drm/mediatek/mtk_hdmi.c
@@ -311,14 +311,10 @@ static void mtk_hdmi_hw_send_info_frame(struct mtk_hdmi *hdmi, u8 *buffer,
u8 checksum;
int ctrl_frame_en = 0;
- frame_type = *buffer;
- buffer += 1;
- frame_ver = *buffer;
- buffer += 1;
- frame_len = *buffer;
- buffer += 1;
- checksum = *buffer;
- buffer += 1;
+ frame_type = *buffer++;
+ frame_ver = *buffer++;
+ frame_len = *buffer++;
+ checksum = *buffer++;
frame_data = buffer;
dev_dbg(hdmi->dev,