mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-26 17:19:22 +00:00
simplify
This commit is contained in:
1 parent
0878653f65
commit
1d05467678
1 file changed
+1
-3
+1
-3
@@ -40,9 +40,7 @@ grub_extcmd_dispatcher (struct grub_command *cmd, int argc, char **args,
|
|||||||
context.extcmd = ext;
|
context.extcmd = ext;
|
||||||
context.script = script;
|
context.script = script;
|
||||||
|
|
||||||
/* Dynamic commands should not perform option parsing before
|
if (! ext->options)
|
||||||
corresponding module gets loaded. */
|
|
||||||
if (cmd->flags & GRUB_COMMAND_FLAG_DYNCMD)
|
|
||||||
{
|
{
|
||||||
ret = (ext->func) (&context, argc, args);
|
ret = (ext->func) (&context, argc, args);
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in new issue
Block a user