asix-sigma: Squash yoda-condition in upload_firmware()
Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
a80226bbb9
commit
29b66a2eb0
|
@ -589,7 +589,7 @@ static int upload_firmware(int firmware_idx, struct dev_context *devc)
|
||||||
ftdi_usb_purge_buffers(ftdic);
|
ftdi_usb_purge_buffers(ftdic);
|
||||||
|
|
||||||
/* Discard garbage. */
|
/* Discard garbage. */
|
||||||
while (1 == sigma_read(&pins, 1, devc))
|
while (sigma_read(&pins, 1, devc) == 1)
|
||||||
;
|
;
|
||||||
|
|
||||||
/* Initialize the logic analyzer mode. */
|
/* Initialize the logic analyzer mode. */
|
||||||
|
|
Loading…
Reference in New Issue