]> git.baikalelectronics.ru Git - uboot.git/commit
cfi_flash: Remove assignments from if conditions
authorMario Six <mario.six@gdsys.cc>
Fri, 26 Jan 2018 13:43:48 +0000 (14:43 +0100)
committerStefan Roese <sr@denx.de>
Mon, 29 Jan 2018 06:48:58 +0000 (07:48 +0100)
commitbf16dda938d4631bf33631b8b943d8330373a2d5
tree159fa37ab8249becfe94c5976457037bc6a6ef76
parentddbce309d0ae259880a0d5ee9239366ca03942fc
cfi_flash: Remove assignments from if conditions

The condition in if statements should not be used for variable
assignment. Instead, the assignment should be done in a separate step
beforehand. Fix all instances where this occurs.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/cfi_flash.c