projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fbeeea
)
i2c: fix command usage help
author
Heiko Schocher
<hs@denx.de>
Fri, 17 Sep 2010 11:10:35 +0000
(13:10 +0200)
committer
Wolfgang Denk
<wd@denx.de>
Sun, 19 Sep 2010 17:29:52 +0000
(19:29 +0200)
Portions of this work were supported by funding from
the CE Linux Forum.
Signed-off-by: Heiko Schocher <hs@denx.de>
common/cmd_i2c.c
patch
|
blob
|
history
diff --git
a/common/cmd_i2c.c
b/common/cmd_i2c.c
index 1283c82afb0c6dae2cd6b286b786dee34f407d74..a7b65edd5fcc9dbc149f1d1e8b2455f6853464eb 100644
(file)
--- a/
common/cmd_i2c.c
+++ b/
common/cmd_i2c.c
@@
-1288,6
+1288,9
@@
static int do_i2c(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
{
cmd_tbl_t *c;
+ if (argc < 2)
+ return cmd_usage(cmdtp);
+
/* Strip off leading 'i2c' command argument */
argc--;
argv++;