Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar by removing useless asignments and return statements
[simgrid.git] / teshsuite / msg / get_sender / get_sender.c
index 8cdab2f..2048b5f 100644 (file)
@@ -30,8 +30,6 @@ static int receiver_fun(int argc, char *argv[])
 
 int main(int argc, char *argv[])
 {
-  msg_error_t res = MSG_OK;
-
   MSG_init(&argc, argv);
 
   MSG_create_environment(argv[1]);
@@ -39,6 +37,5 @@ int main(int argc, char *argv[])
   MSG_process_create("send", sender_fun, NULL, MSG_get_host_by_name("Tremblay"));
   MSG_process_create("receive", receiver_fun, NULL, MSG_get_host_by_name("Tremblay"));
 
-  res = MSG_main();
-  return res != MSG_OK;
+  return MSG_main() != MSG_OK;
 }