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 fb5476c..254a01a 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);
        }