From 093a9e00142de95f6530830bf7b57d56df586b00 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 20 Apr 2020 17:06:55 +0200 Subject: mqtt: remove code with no purpose Detected by Coverity. CID 1462319. "The same code is executed when the condition result is true or false, because the code in the if-then branch and after the if statement is identical." Closes #5275 --- lib/mqtt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/mqtt.c b/lib/mqtt.c index 44433361b..4c664f7f6 100644 --- a/lib/mqtt.c +++ b/lib/mqtt.c @@ -609,8 +609,6 @@ static CURLcode mqtt_doing(struct connectdata *conn, bool *done) case MQTT_PUBWAIT: case MQTT_PUB_REMAIN: result = mqtt_read_publish(conn, done); - if(result) - break; break; default: -- cgit v1.2.1