[U-Boot] [RFC][PATCH 08/19] i2c: fix command usage help

Peter Tyser ptyser at xes-inc.com
Thu Jul 29 17:40:17 CEST 2010


>  {
>  	cmd_tbl_t *c;
> 
> +	if (argc < 2) {
> +		cmd_usage(cmdtp);
> +		return 1;
> +	}
> +

Wolfgang recently made cmd_usage() return 1 so the above could be
simplified to:
if (argc < 2)
	return cmd_usage(cmdtp);

Best,
Peter



More information about the U-Boot mailing list