diff --git a/script/parser.y b/script/parser.y index 8d0833c8b..5f2f01347 100644 --- a/script/parser.y +++ b/script/parser.y @@ -80,7 +80,7 @@ %token GRUB_PARSER_TOKEN_WORD "word" %type block block0 -%type word argument parameters0 parameters1 arguments0 arguments1 +%type word argument arguments0 arguments1 %type script_init script %type grubcmd ifclause ifcmd forcmd whilecmd untilcmd @@ -233,22 +233,7 @@ arguments1: argument arguments0 } ; -parameters1: argument parameters0 - { - if ($1 && $2) - { - $1->next = $2; - $1->argcount += $2->argcount; - $2->argcount = 0; - } - $$ = $1; - } -; -parameters0: /* Empty */ { $$ = 0; } - | parameters1 { $$ = $1; } -; - -grubcmd: word parameters0 block0 +grubcmd: word arguments0 block0 { struct grub_script_arglist *x = $2; diff --git a/script/script.c b/script/script.c index 6da4b72cd..0ff729d27 100644 --- a/script/script.c +++ b/script/script.c @@ -97,7 +97,7 @@ grub_script_free (struct grub_script *script) struct grub_script *s; struct grub_script *t; - if (!script) + if (! script) return; if (script->mem)