]> git.dujemihanovic.xyz Git - u-boot.git/commit
jffs2:jffs2_1pass.c: remove double braces
authorJeroen Hofstee <jeroen@myspectrum.nl>
Tue, 10 Jun 2014 22:40:25 +0000 (00:40 +0200)
committerTom Rini <trini@ti.com>
Wed, 11 Jun 2014 20:27:06 +0000 (16:27 -0400)
commit46f46fd48e08ccd0f0cf2e9f38b5f32ad530a33f
treebb8ed78561f41c6d67c7b17ca0c92c2707e7287a
parent2716077cda521ae37c21a69baf83ad5c12ca89bb
jffs2:jffs2_1pass.c: remove 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.

Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
fs/jffs2/jffs2_1pass.c