From 1f240bd13fbbe28b1610fe10d298afcd7c61b81e Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Sat, 5 Mar 2022 09:01:15 +0100 Subject: -simplify --- src/fs/fs_uri.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/fs/fs_uri.c b/src/fs/fs_uri.c index dff94ee26..2d5566b54 100644 --- a/src/fs/fs_uri.c +++ b/src/fs/fs_uri.c @@ -659,20 +659,16 @@ GNUNET_FS_uri_parse (const char *uri, char **emsg) msg = NULL; if (NULL != (ret = uri_chk_parse (uri, &msg))) return ret; - if (NULL != msg) - GNUNET_free (msg); + GNUNET_free (msg); if (NULL != (ret = uri_ksk_parse (uri, &msg))) return ret; - if (NULL != msg) - GNUNET_free (msg); + GNUNET_free (msg); if (NULL != (ret = uri_sks_parse (uri, &msg))) return ret; - if (NULL != msg) - GNUNET_free (msg); + GNUNET_free (msg); if (NULL != (ret = uri_loc_parse (uri, &msg))) return ret; - if (NULL != msg) - GNUNET_free (msg); + GNUNET_free (msg); if (NULL != emsg) *emsg = GNUNET_strdup (_ ("Unrecognized URI type")); return NULL; -- cgit v1.2.3