]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/statd/notlist.c
Merge branch 'upstream'
[nfs-utils.git] / utils / statd / notlist.c
index 4f52b1deccb3c41ab6e7550baf3324bebaeb26ad..b74d9df07b1806667e5a7992ae675223771a0824 100644 (file)
@@ -54,15 +54,13 @@ nlist_new(char *my_name, char *mon_name, int state)
 {
        notify_list     *new;
 
-       if (!(new = (notify_list *) xmalloc(sizeof(notify_list))))
-               return NULL;
+       new = (notify_list *) xmalloc(sizeof(notify_list));
        memset(new, 0, sizeof(*new));
 
        NL_TIMES(new) = MAX_TRIES;
        NL_STATE(new) = state;
-       if (!(NL_MY_NAME(new) = xstrdup(my_name))
-                       || !(NL_MON_NAME(new) = xstrdup(mon_name)))
-               return NULL;
+       NL_MY_NAME(new) = xstrdup(my_name);
+       NL_MON_NAME(new) = xstrdup(mon_name);
 
        return new;
 }