diff options
author | Jeroen Hofstee <jeroen@myspectrum.nl> | 2014-06-11 00:40:25 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-06-11 16:27:06 -0400 |
commit | 46f46fd48e08ccd0f0cf2e9f38b5f32ad530a33f (patch) | |
tree | bb8ed78561f41c6d67c7b17ca0c92c2707e7287a /fs | |
parent | 2716077cda521ae37c21a69baf83ad5c12ca89bb (diff) | |
download | u-boot-imx-46f46fd48e08ccd0f0cf2e9f38b5f32ad530a33f.zip u-boot-imx-46f46fd48e08ccd0f0cf2e9f38b5f32ad530a33f.tar.gz u-boot-imx-46f46fd48e08ccd0f0cf2e9f38b5f32ad530a33f.tar.bz2 |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/jffs2/jffs2_1pass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c index 3fb5db3..b1d6470 100644 --- a/fs/jffs2/jffs2_1pass.c +++ b/fs/jffs2/jffs2_1pass.c @@ -724,7 +724,7 @@ jffs2_1pass_read_inode(struct b_lists *pL, u32 inode, char *dest) for (b = pL->frag.listHead; b != NULL; b = b->next) { jNode = (struct jffs2_raw_inode *) get_node_mem(b->offset, pL->readbuf); - if ((inode == jNode->ino)) { + if (inode == jNode->ino) { #if 0 putLabeledWord("\r\n\r\nread_inode: totlen = ", jNode->totlen); putLabeledWord("read_inode: inode = ", jNode->ino); |