From: Bernard Zhao Date: Wed, 6 May 2020 12:33:55 +0000 (-0700) Subject: drm/mediatek: Cleanup coding style in mediatek a bit X-Git-Tag: baikal/mips/sdk5.9~13559^2~4^2~1 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=fa889a4d1533a522300f53db9a1ca413677bc174;p=kernel.git drm/mediatek: Cleanup coding style in mediatek a bit This code change is to make code bit more readable. Signed-off-by: Bernard Zhao Signed-off-by: Chun-Kuang Hu --- diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi.c b/drivers/gpu/drm/mediatek/mtk_hdmi.c index ff43a3d80410f..43e9876fd50c9 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,