From d7d4b67c6a7ec4e904abe0f1234cff494414d427 Mon Sep 17 00:00:00 2001 From: Yu-Ping Wu Date: Mon, 19 Jan 2026 14:37:29 +0800 Subject: [PATCH] commonlib/mipi/cmd: Remove unnecessary 'const void *' cast The 'buf' variable is already 'const void *'. Change-Id: I0d52f7386853bf353df637085be0f38f787bf6d5 Signed-off-by: Yu-Ping Wu Reviewed-on: https://review.coreboot.org/c/coreboot/+/90797 Tested-by: build bot (Jenkins) Reviewed-by: Yidi Lin Reviewed-by: Chen-Tsung Hsieh --- src/commonlib/mipi/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commonlib/mipi/cmd.c b/src/commonlib/mipi/cmd.c index fa52d21c08..8c59a83b6e 100644 --- a/src/commonlib/mipi/cmd.c +++ b/src/commonlib/mipi/cmd.c @@ -17,7 +17,7 @@ enum cb_err mipi_panel_parse_commands(const void *buf, mipi_cmd_func_t cmd_func, * to parse and scan. */ - for (; command->cmd != PANEL_CMD_END; command = (const void *)buf) { + for (; command->cmd != PANEL_CMD_END; command = buf) { /* * For some commands like DELAY, the command->len should not be * counted for buf.