]> sigrok.org Git - libsigrok.git/commitdiff
saleae-logic-pro: silence "assigned, not used" compiler warning
authorGerhard Sittig <redacted>
Fri, 9 Feb 2018 18:27:52 +0000 (19:27 +0100)
committerUwe Hermann <redacted>
Fri, 9 Feb 2018 20:37:40 +0000 (21:37 +0100)
Remove an assignment that never took effect.

This was reported by clang's scan-build.

src/hardware/saleae-logic-pro/protocol.c

index 94cab7fbeea63405c7faf6785a7ed0cf5281a3bc..2613b271243ff2f7caa8a7d7f7d9b845974b9535 100644 (file)
@@ -530,8 +530,6 @@ static int upload_bitstream(const struct sr_dev_inst *sdi,
                bs_offset += bs_part_size;
        }
 
-       ret = SR_OK;
-
        sr_info("Bitstream upload done.");
 
        /* Check a scratch register? */