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

Heiko Schocher hs at denx.de
Fri Jul 30 08:04:46 CEST 2010


Hello Peter,

Peter Tyser wrote:
>>  {
>>  	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);

Hups, missed this, sorry. I fix it in the next version. thanks.

bye
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


More information about the U-Boot mailing list