From: Jeroen Hofstee Date: Tue, 10 Jun 2014 22:34:39 +0000 (+0200) Subject: board:keymile: remove unnecessary double braces X-Git-Tag: submit/tizen/20140613.130021~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2716077cda521ae37c21a69baf83ad5c12ca89bb;p=platform%2Fkernel%2Fu-boot.git board:keymile: 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. cc: Holger Brunck Signed-off-by: Jeroen Hofstee --- diff --git a/board/keymile/common/ivm.c b/board/keymile/common/ivm.c index bffc08be95..b6b19ccb8e 100644 --- a/board/keymile/common/ivm.c +++ b/board/keymile/common/ivm.c @@ -120,7 +120,7 @@ static int ivm_findinventorystring(int type, /* Look for the requested number of CR. */ while ((cr != nr) && (addr < INVENTORYDATASIZE)) { - if ((buf[addr] == '\r')) + if (buf[addr] == '\r') cr++; addr++; }