]> sigrok.org Git - libsigrok.git/commitdiff
asix-sigma: Squash yoda-condition in upload_firmware()
authorMarek Vasut <redacted>
Sun, 20 Apr 2014 17:29:52 +0000 (19:29 +0200)
committerBert Vermeulen <redacted>
Wed, 30 Apr 2014 16:45:51 +0000 (09:45 -0700)
Signed-off-by: Marek Vasut <redacted>
hardware/asix-sigma/asix-sigma.c

index 2cd9b9e86a6d1743c01339e6743bd709d091f4f8..8e794039d3aeaeef9c3425a2634b2df426b757a6 100644 (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. */