From: Ralph Corderoy Date: Thu, 20 Oct 2016 22:27:42 +0000 (+0100) Subject: Don't `else' after return. Simplify control flow. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/076e0cfe3b473104b2957e4164714a594d439b7a?ds=sidebyside Don't `else' after return. Simplify control flow. --- diff --git a/uip/mkstemp.c b/uip/mkstemp.c index 259c3edd..f4215c08 100644 --- a/uip/mkstemp.c +++ b/uip/mkstemp.c @@ -109,10 +109,10 @@ build_template(const char *directory, const char *prefix, const char *suffix) { template[len-1] = '\0'; return template; - } else { - perror("malloc"); - return NULL; } + + perror("malloc"); + return NULL; }