mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 22:51:37 +00:00
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>
This commit is contained in:
parent
930e4254ec
commit
2716077cda
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ static int ivm_findinventorystring(int type,
|
||||||
|
|
||||||
/* Look for the requested number of CR. */
|
/* Look for the requested number of CR. */
|
||||||
while ((cr != nr) && (addr < INVENTORYDATASIZE)) {
|
while ((cr != nr) && (addr < INVENTORYDATASIZE)) {
|
||||||
if ((buf[addr] == '\r'))
|
if (buf[addr] == '\r')
|
||||||
cr++;
|
cr++;
|
||||||
addr++;
|
addr++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue