]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
mqtt: remove code with no purpose
authorDaniel Stenberg <daniel@haxx.se>
Mon, 20 Apr 2020 15:06:55 +0000 (17:06 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 20 Apr 2020 20:35:48 +0000 (22:35 +0200)
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

index 44433361b35b63c6cbc650ddd81444f4a26ea36f..4c664f7f6df7a168593db767c7cf5568b520b148 100644 (file)
@@ -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: