Commit 032c148a authored by Marek Vasut's avatar Marek Vasut

mxssb: Discard IVT flag from command context

The IVT flag is completely useless now, especially since we treat
the IVT as yet another data payload rather than something special.
Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
parent f21ae651
......@@ -51,8 +51,6 @@ struct sb_cmd_list {
};
struct sb_cmd_ctx {
unsigned int ivt:1;
struct sb_cmd_ctx *cmd;
uint8_t *data;
......@@ -485,6 +483,7 @@ static int sb_tag_to_command(struct sb_cmd_ctx *cctx, struct sb_cmd_list *lst)
char *tok;
long dest;
char *line;
int is_ivt = 0;
line = strdup(lst->cmd);
if (!line)
......@@ -560,7 +559,7 @@ static int sb_tag_to_command(struct sb_cmd_ctx *cctx, struct sb_cmd_list *lst)
}
/* Check for "IVT" flag. */
if ((strlen(tok) == 3) && !strncmp(tok, "IVT", 3)) {
cctx->ivt = 1;
is_ivt = 1;
tok = strtok(NULL, " ");
if (!tok) {
fprintf(stderr,
......@@ -587,7 +586,7 @@ static int sb_tag_to_command(struct sb_cmd_ctx *cctx, struct sb_cmd_list *lst)
ret = -EINVAL;
goto err;
}
if (cctx->ivt) {
if (is_ivt) {
struct sb_ivt_header *ivt;
long ivtep = sb_token_to_long(tok);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment