]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/cmd_pci.c
cmd_usage(): simplify return code handling
[people/ms/u-boot.git] / common / cmd_pci.c
index 358ca60b8143671a2cf97b685a285ef706680e69..4bde0599118dd805dcc2cf8c0295f90eebb0847a 100644 (file)
@@ -534,8 +534,7 @@ int do_pci (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
        return 1;
  usage:
-       cmd_usage(cmdtp);
-       return 1;
+       return cmd_usage(cmdtp);
 }
 
 /***************************************************/