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)
commitd3525b6bb0c39de537f0d2e79bb9ab9ad8fd8bf5
tree159fa37ab8249becfe94c5976457037bc6a6ef76
parentab61cfb857a14c4dd90a5d11c2f3064c28d5b3a1
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