]> sigrok.org Git - libsigrok.git/commitdiff
Remove always-false condition
authorMichał Janiszewski <redacted>
Tue, 30 Oct 2018 06:31:40 +0000 (07:31 +0100)
committerUwe Hermann <redacted>
Sat, 10 Nov 2018 22:20:29 +0000 (23:20 +0100)
src/hardware/gwinstek-gpd/protocol.c

index a054e91be962223a6ef58cde0c88eeeacdb300f7..6038c637ee9e751df3888723ae82d41111384478 100644 (file)
@@ -53,7 +53,7 @@ SR_PRIV int gpd_receive_reply(struct sr_serial_dev_inst *serial, char *buf,
        gint64 start, remaining;
        const int timeout_ms = 100;
 
-       if (!serial || (lines <= 0) || !buf || (buflen <= 0))
+       if (!serial || !buf || (buflen <= 0))
                return SR_ERR_ARG;
 
        start = g_get_monotonic_time();