summaryrefslogtreecommitdiff
path: root/board/keymile
diff options
context:
space:
mode:
authorJeroen Hofstee <jeroen@myspectrum.nl>2014-06-11 00:34:39 +0200
committerTom Rini <trini@ti.com>2014-06-11 16:27:06 -0400
commit2716077cda521ae37c21a69baf83ad5c12ca89bb (patch)
treebb9d27256408668b37467e53763e055e48bf73a3 /board/keymile
parent930e4254ec29ea5133c0772d4a3804ba1c59b275 (diff)
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 <holger.brunck@keymile.com> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Diffstat (limited to 'board/keymile')
-rw-r--r--board/keymile/common/ivm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/keymile/common/ivm.c b/board/keymile/common/ivm.c
index bffc08be951..b6b19ccb8ea 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++;
}