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.