From: MichaƂ Janiszewski Date: Tue, 30 Oct 2018 06:31:40 +0000 (+0100) Subject: Remove always-false condition X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3e33089b725f7fdaf1bf7dad0103825b316c1541;p=libsigrok.git Remove always-false condition --- diff --git a/src/hardware/gwinstek-gpd/protocol.c b/src/hardware/gwinstek-gpd/protocol.c index a054e91b..6038c637 100644 --- a/src/hardware/gwinstek-gpd/protocol.c +++ b/src/hardware/gwinstek-gpd/protocol.c @@ -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();