]> git.sur5r.net Git - u-boot/commit
cmd_usage(): simplify return code handling
authorWolfgang Denk <wd@denx.de>
Fri, 16 Jul 2010 23:06:04 +0000 (01:06 +0200)
committerWolfgang Denk <wd@denx.de>
Sat, 24 Jul 2010 18:43:57 +0000 (20:43 +0200)
commit47e26b1bf91ddef69f4a3892815c857db094cef9
tree7d688085d23779707c637703273f79bd3cca83e0
parentdebb6299ac1180a08f29f88c6d782b21a9c98707
cmd_usage(): simplify return code handling

Lots of code use this construct:

cmd_usage(cmdtp);
return 1;

Change cmd_usage() let it return 1 - then we can replace all these
ocurrances by

return cmd_usage(cmdtp);

This fixes a few places with incorrect return code handling, too.

Signed-off-by: Wolfgang Denk <wd@denx.de>
89 files changed:
arch/powerpc/cpu/mpc512x/diu.c
arch/powerpc/cpu/mpc8260/bedbug_603e.c
arch/powerpc/cpu/mpc83xx/ecc.c
arch/powerpc/cpu/mpc8xx/bedbug_860.c
board/amcc/acadia/cmd_acadia.c
board/amcc/luan/luan.c
board/amcc/makalu/cmd_pll.c
board/amcc/taihu/lcd.c
board/amcc/taihu/taihu.c
board/amcc/taishan/lcd.c
board/amcc/yucca/cmd_yucca.c
board/barco/barco.c
board/digsy_mtc/cmd_mtc.c
board/esd/common/lcd.c
board/esd/dasa_sim/cmd_dasa_sim.c
board/freescale/common/sys_eeprom.c
board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c
board/hymod/bsp.c
board/inka4x0/inkadiag.c
board/keymile/km_arm/km_arm.c
board/lwmon/lwmon.c
board/lwmon5/lwmon5.c
board/mpl/common/common_util.c
board/pcippc2/pcippc2.c
board/pcs440ep/pcs440ep.c
board/pdm360ng/pdm360ng.c
board/pn62/cmd_pn62.c
board/prodrive/pdnb3/pdnb3.c
board/renesas/sh7785lcr/rtl8169_mac.c
board/renesas/sh7785lcr/selfcheck.c
board/siemens/common/fpga.c
board/siemens/pcu_e/pcu_e.c
board/spear/common/spr_misc.c
board/tqc/tqm5200/cmd_stk52xx.c
board/trab/cmd_trab.c
board/trizepsiv/eeprom.c
board/w7o/cmd_vpd.c
common/cmd_bedbug.c
common/cmd_bmp.c
common/cmd_boot.c
common/cmd_bootm.c
common/cmd_cache.c
common/cmd_dcr.c
common/cmd_df.c
common/cmd_eeprom.c
common/cmd_ext2.c
common/cmd_fdc.c
common/cmd_fdos.c
common/cmd_fdt.c
common/cmd_flash.c
common/cmd_fpga.c
common/cmd_i2c.c
common/cmd_ide.c
common/cmd_irq.c
common/cmd_itest.c
common/cmd_load.c
common/cmd_log.c
common/cmd_mem.c
common/cmd_mfsl.c
common/cmd_mii.c
common/cmd_misc.c
common/cmd_mmc.c
common/cmd_mp.c
common/cmd_mtdparts.c
common/cmd_nand.c
common/cmd_net.c
common/cmd_nvedit.c
common/cmd_onenand.c
common/cmd_otp.c
common/cmd_pci.c
common/cmd_portio.c
common/cmd_reiser.c
common/cmd_sata.c
common/cmd_scsi.c
common/cmd_setexpr.c
common/cmd_sf.c
common/cmd_strings.c
common/cmd_ubi.c
common/cmd_ubifs.c
common/cmd_usb.c
common/cmd_vfd.c
common/command.c
common/hush.c
common/main.c
drivers/gpio/pca953x.c
drivers/misc/ds4510.c
drivers/misc/fsl_pmic.c
drivers/qe/qe.c
tools/updater/cmd_flash.c