]> Kevux Git Server - fll/commitdiff
Cleanup: Remove useless NULL assignment to pointer.
authorKevin Day <kevin@kevux.org>
Sat, 22 Jul 2023 01:09:23 +0000 (20:09 -0500)
committerKevin Day <kevin@kevux.org>
Sat, 22 Jul 2023 01:09:23 +0000 (20:09 -0500)
This doesn't change the value of the pointer, so it should be a useless operation.

level_0/f_thread/c/private-thread.c

index ded982142a274f8eb4551a8c8120a6c48a9337cf..564b7a87b8833c312d0920c6ccdc0127d360d338 100644 (file)
@@ -12,8 +12,6 @@ extern "C" {
       return F_status_set_error(F_failure);
     }
 
-    attribute = 0;
-
     return F_none;
   }
 #endif // !defined(_di_f_thread_attributes_adjust_) || !defined(_di_f_thread_attributes_decimate_by_) || !defined(_di_f_thread_attributes_decrease_) || !defined(_di_f_thread_attributes_decrease_by_) || !defined(_di_f_thread_attributes_increase_) || !defined(_di_f_thread_attributes_increase_by_) || !defined(_di_f_thread_attributes_resize_) || !defined(_di_f_thread_sets_adjust_) || !defined(_di_f_thread_sets_decimate_by_) || !defined(_di_f_thread_sets_decrease_) || !defined(_di_f_thread_sets_decrease_by_) || !defined(_di_f_thread_sets_increase_) || !defined(_di_f_thread_sets_increase_by_) || !defined(_di_f_thread_sets_resize_)
@@ -78,8 +76,6 @@ extern "C" {
       return F_status_set_error(F_failure);
     }
 
-    barrier = 0;
-
     return F_none;
   }
 #endif // !defined(_di_f_thread_barriers_adjust_) || !defined(_di_f_thread_barriers_decimate_by_) || !defined(_di_f_thread_barriers_decrease_) || !defined(_di_f_thread_barriers_decrease_by_) || !defined(_di_f_thread_barriers_increase_) || !defined(_di_f_thread_barriers_increase_by_) || !defined(_di_f_thread_barriers_resize_)
@@ -139,8 +135,6 @@ extern "C" {
       return F_status_set_error(F_failure);
     }
 
-    attribute = 0;
-
     return F_none;
   }
 #endif // !defined(_di_f_thread_barrier_attributes_adjust_) || !defined(_di_f_thread_barrier_attributes_decimate_by_) || !defined(_di_f_thread_barrier_attributes_decrease_) || !defined(_di_f_thread_barrier_attributes_decrease_by_) || !defined(_di_f_thread_barrier_attributes_increase_) || !defined(_di_f_thread_barrier_attributes_increase_by_) || !defined(_di_f_thread_barrier_attributes_resize_)