NETIN: one return is enough.
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 8 Jun 2013 15:05:01 +0000 (17:05 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 8 Jun 2013 15:05:01 +0000 (17:05 +0200)
citadel/modules/network/serv_network.c

index fb5476cc913f479187a7f73d5f84ff5724f0a619..254a01a28c46c748a543cdc4f23cbcf815c59277 100644 (file)
@@ -111,13 +111,8 @@ int network_usetable(struct CtdlMessage *msg)
        time_t now;
 
        /* Bail out if we can't generate a message ID */
-       if (msg == NULL) {
-               return(0);
-       }
-       if (msg->cm_fields['I'] == NULL) {
-               return(0);
-       }
-       if (IsEmptyStr(msg->cm_fields['I'])) {
+       if ((msg == NULL) || (msg->cm_fields['I'] == NULL) || (IsEmptyStr(msg->cm_fields['I'])))
+       {
                return(0);
        }