minor change in coding style to avoid potential bug
authorChao Mei <chaomei2@illinois.edu>
Tue, 31 Jan 2012 03:34:30 +0000 (21:34 -0600)
committerChao Mei <chaomei2@illinois.edu>
Tue, 31 Jan 2012 03:34:30 +0000 (21:34 -0600)
src/arch/util/machine-common-core.c

index bf6efdb5e7089807de2316fc02627a59f1dd9509..1d3dc6ec2cf26b90d0a1eb499a8f50fff6ec6b61 100644 (file)
@@ -415,11 +415,12 @@ static INLINE_KEYWORD void handleOneRecvedMsg(int size, char *msg) {
     }
 
 #if CMK_NODE_QUEUE_AVAILABLE
-    if (CMI_DEST_RANK(msg)==DGRAM_NODEMESSAGE)
+    if (CMI_DEST_RANK(msg)==DGRAM_NODEMESSAGE){
         CmiPushNode(msg);
-    else
+        return;
+    }
 #endif
-        CmiPushPE(CMI_DEST_RANK(msg), msg);
+    CmiPushPE(CMI_DEST_RANK(msg), msg);
 
 }