From: Daniel Stenberg Date: Mon, 20 Apr 2020 15:06:55 +0000 (+0200) Subject: mqtt: remove code with no purpose X-Git-Tag: curl-7_70_0~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=093a9e00142de95f6530830bf7b57d56df586b00;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/mqtt.c b/lib/mqtt.c index 44433361b3..4c664f7f6d 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: