Create a single cmd_call() function to handle command execution
[oweals/u-boot.git] / common / hush.c
index e8e24d7deab952f7e7d0d429febfa94b464398d1..6cb921d4f35151a901b521e8e3b3878cb6582319 100644 (file)
@@ -1679,13 +1679,10 @@ static int run_pipe_real(struct pipe *pi)
                                rcode = x->function(child);
 #else
                                /* OK - call function to do the command */
-
-                               rcode = (cmdtp->cmd)
-(cmdtp, flag,child->argc-i,&child->argv[i]);
-                               if ( !cmdtp->repeatable )
+                               rcode = cmd_call(cmdtp, flag,  child->argc-i,
+                                                &child->argv[i]);
+                               if (!cmdtp->repeatable)
                                        flag_repeat = 0;
-
-
 #endif
                                child->argv-=i;  /* XXX restore hack so free() can work right */
 #ifndef __U_BOOT__