diff mbox

[gomp4] minor libgomp cleanup

Message ID 55E4B1D5.607@acm.org
State New
Headers show

Commit Message

Nathan Sidwell Aug. 31, 2015, 7:58 p.m. UTC
In excising shared_size, I stumbled upon this bit of strangeness.  Attaching a 
new node onto the end of a singly linked list is not complicated ...

nathan
diff mbox

Patch

2015-08-31  Nathan Sidwell  <nathan@codesourcery.com>

	* oacc-parallel.c (GOACC_register_static): Remove superfluous NULL
	check.

Index: libgomp/oacc-parallel.c
===================================================================
--- libgomp/oacc-parallel.c	(revision 227353)
+++ libgomp/oacc-parallel.c	(working copy)
@@ -673,12 +661,9 @@  GOACC_register_static (void *addr, int s
   s->size = (size_t) size;
   s->mask = mask;
   s->free = false;
-  s->next = NULL;
-
-  if (oacc_statics)
-    s->next = oacc_statics;
+  s->next = oacc_statics;
 
-   oacc_statics = s;
+  oacc_statics = s;
 }
 
 void