Message ID | 55E4B1D5.607@acm.org |
---|---|
State | New |
Headers | show |
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