]> git.sur5r.net Git - u-boot/commit
common/cli_hush.c: remove unnecessary double braces
authorJeroen Hofstee <jeroen@myspectrum.nl>
Tue, 10 Jun 2014 22:28:47 +0000 (00:28 +0200)
committerTom Rini <trini@ti.com>
Wed, 11 Jun 2014 20:27:06 +0000 (16:27 -0400)
commit930e4254ec29ea5133c0772d4a3804ba1c59b275
tree912a465f68e4cad5441f00b2d0494225316358ae
parent867abdac5effde660ac1ca9db8c43994edc01c09
common/cli_hush.c: remove unnecessary double braces

Clang interpretes an if condition like  "if ((a = b) == NULL)
as it tries to assign a value in a statement. Hence if you do
"if ((something)) it warns you that you might be confused.
Hence drop the double braces for plane if statements.

Simon Glass <sjg@chromium.org>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
common/cli_hush.c