asix-sigma: Squash yoda-condition in upload_firmware()

Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
Marek Vasut 2014-04-20 19:29:52 +02:00 committed by Bert Vermeulen
parent a80226bbb9
commit 29b66a2eb0
1 changed files with 1 additions and 1 deletions

View File

@ -589,7 +589,7 @@ static int upload_firmware(int firmware_idx, struct dev_context *devc)
ftdi_usb_purge_buffers(ftdic);
/* Discard garbage. */
while (1 == sigma_read(&pins, 1, devc))
while (sigma_read(&pins, 1, devc) == 1)
;
/* Initialize the logic analyzer mode. */