]> granicus.if.org Git - procps-ng/commitdiff
make warning go away
authoralbert <>
Mon, 30 Sep 2002 23:32:54 +0000 (23:32 +0000)
committeralbert <>
Mon, 30 Sep 2002 23:32:54 +0000 (23:32 +0000)
proc/alloc.c

index 0a616ceca86bc4198a0f53a675056cc12db94179..4f495e5d74ad6f01f5b46901017d9b2eb96a4521 100644 (file)
@@ -15,9 +15,8 @@ void *xcalloc(void *pointer, int size) {
     if (!(ret = calloc(1, size))) {
         fprintf(stderr, "xcalloc: allocation error, size = %d\n", size);
         exit(1);
-    } else {
-        return ret;
     }
+    return ret;
 }
 
 void *xmalloc(unsigned int size) {