aboutsummaryrefslogtreecommitdiff
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 22:35:48 +0200
commit093a9e00142de95f6530830bf7b57d56df586b00 (patch)
tree19d90b9d92611d5795295584c6e907bed4312e07
parent96c149685bff881b30493acf0fed1fc4cd5520ee (diff)
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
-rw-r--r--lib/mqtt.c2
1 files changed, 0 insertions, 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: