Skip to content

Commit 3cda3d3

Browse files
Bernard ZhaoChun-Kuang Hu
authored andcommitted
drm/mediatek: Cleanup coding style in mediatek a bit
This code change is to make code bit more readable. Signed-off-by: Bernard Zhao <[email protected]> Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent 9a67bc4 commit 3cda3d3

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

drivers/gpu/drm/mediatek/mtk_hdmi.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -311,14 +311,10 @@ static void mtk_hdmi_hw_send_info_frame(struct mtk_hdmi *hdmi, u8 *buffer,
311311
u8 checksum;
312312
int ctrl_frame_en = 0;
313313

314-
frame_type = *buffer;
315-
buffer += 1;
316-
frame_ver = *buffer;
317-
buffer += 1;
318-
frame_len = *buffer;
319-
buffer += 1;
320-
checksum = *buffer;
321-
buffer += 1;
314+
frame_type = *buffer++;
315+
frame_ver = *buffer++;
316+
frame_len = *buffer++;
317+
checksum = *buffer++;
322318
frame_data = buffer;
323319

324320
dev_dbg(hdmi->dev,

0 commit comments

Comments
 (0)