From 076e0cfe3b473104b2957e4164714a594d439b7a Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 20 Oct 2016 23:27:42 +0100 Subject: [PATCH] Don't `else' after return. Simplify control flow. --- uip/mkstemp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.56.0