Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'doc_link' into 'master'
[simgrid.git] / teshsuite / msg / task_destroy_cancel / task_destroy_cancel.c
index c56101e148903881d82eb0b18368213d47265d46..2a10ed96728cd0ec9f7f7307d2d1519f0bbdf626 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2010-2021. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -66,8 +66,7 @@ static int worker(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
 {
   while (1) {
     msg_task_t task           = NULL;
-    XBT_ATTRIB_UNUSED int res = MSG_task_receive(&(task), "worker_mailbox");
-    xbt_assert(res == MSG_OK, "MSG_task_get failed");
+    xbt_assert(MSG_task_receive(&(task), "worker_mailbox") == MSG_OK, "MSG_task_receive failed");
     XBT_INFO("Handling task \"%s\"", MSG_task_get_name(task));
 
     if (!strcmp(MSG_task_get_name(task), "finalize")) {