]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/mediatek: Cleanup coding style in mediatek a bit
authorBernard Zhao <bernard@vivo.com>
Wed, 6 May 2020 12:33:55 +0000 (05:33 -0700)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Wed, 20 May 2020 16:10:08 +0000 (00:10 +0800)
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>
drivers/gpu/drm/mediatek/mtk_hdmi.c

index ff43a3d80410f2989b38e05a08ad34d3a3d12726..43e9876fd50c97bc561db2a334da83e5a2c615d7 100644 (file)
@@ -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,