From: Ruben Kerkhof Date: Fri, 1 Jun 2018 17:06:34 +0000 (+0200) Subject: parser.y: minor cleanup X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f6e419ba6ceeb7c1da5cb1432d8e7347e8bc6fbc;p=collectd.git parser.y: minor cleanup --- diff --git a/src/liboconfig/parser.y b/src/liboconfig/parser.y index 0afc9b57..1b2d6ccd 100644 --- a/src/liboconfig/parser.y +++ b/src/liboconfig/parser.y @@ -266,12 +266,12 @@ static char *unquote (const char *orig) { char *ret = strdup (orig); if (ret == NULL) - return (NULL); + return NULL; size_t len = strlen (ret); if ((len < 2) || (ret[0] != '"') || (ret[len - 1] != '"')) - return (ret); + return ret; len -= 2; memmove (ret, ret + 1, len); @@ -286,5 +286,5 @@ static char *unquote (const char *orig) } } - return (ret); + return ret; } /* char *unquote */