]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd_i2c: bugfix: add missing brace
authorAlessandro Rubini <rubini-list@gnudd.com>
Fri, 17 Jul 2009 12:42:11 +0000 (14:42 +0200)
committerHeiko Schocher <hs@denx.de>
Sat, 18 Jul 2009 08:17:53 +0000 (10:17 +0200)
commit6aee3048348f1b19ab89156da98bfa4f7babf24b
tree4826f2364877b16af9618b9bdfa24545eacaf464
parentbfadb17f69c256196620c32164775f063a59c34f
cmd_i2c: bugfix: add missing brace

The sub-command parser missed a brace, so "return 0;" is always
taken and no error message is diplayed if you say "i2c scan"
instead of "i2c probe", for example.

Proper brace is added. Also, a misleading and unneeded else
is removed.

Signed-off-by: Alessandro Rubini <rubini@gnudd.com.it>
common/cmd_i2c.c