summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-04-20 17:06:55 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-04-20 17:06:55 +0200
commitbd6bd3c8922dadae53972c06aeaa941025a3a278 (patch)
tree96c6d94c59dd25fc2cd66b4c1b75103d2a689053
parentdf28ed6116862921994b1abc5147cb64360e4241 (diff)
downloadcurl-bagder/mqtt-incorrect-expression.tar.gz
mqtt: remove code with no purposebagder/mqtt-incorrect-expression
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."
-rw-r--r--lib/mqtt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/mqtt.c b/lib/mqtt.c
index 35c1b3e83..a6368e6d2 100644
--- a/lib/mqtt.c
+++ b/lib/mqtt.c
@@ -607,8 +607,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: