]> sigrok.org Git - libsigrok.git/commitdiff
fx2lafw: Fix a -Wself-assign compiler warning.
authorUwe Hermann <redacted>
Wed, 11 May 2016 20:24:59 +0000 (22:24 +0200)
committerUwe Hermann <redacted>
Thu, 12 May 2016 12:59:48 +0000 (14:59 +0200)
This closes bug #793.

src/hardware/fx2lafw/protocol.c

index d267ad5b0d84ff5ca17b73c442edc0b825c4b9ec..ad16da9524d7da3e2275e0fa9f7d128f3961dbf5 100644 (file)
@@ -390,9 +390,10 @@ SR_PRIV void mso_send_data_proc(struct sr_dev_inst *sdi,
        size_t i;
        struct dev_context *devc;
 
+       (void)sample_width;
+
        devc = sdi->priv;
 
-       sample_width = sample_width;
        length /= 2;
 
        /* Send the logic */