[systemd-commits] src/timedate

Zbigniew Jędrzejewski-Szmek zbyszek at kemper.freedesktop.org
Tue May 5 21:45:13 PDT 2015


 src/timedate/timedated.c |    3 ---
 1 file changed, 3 deletions(-)

New commits:
commit f2bf5007a97bf5993128a6e16105005f819b60cf
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date:   Tue May 5 23:44:52 2015 -0500

    timedated: remove unnecessary goto
    
    Not needed since 99f861310d3f05f4.

diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c
index 187522e..c5ebb4a 100644
--- a/src/timedate/timedated.c
+++ b/src/timedate/timedated.c
@@ -87,12 +87,9 @@ static int context_read_data(Context *c) {
                         c->zone = strdup(e);
                         if (!c->zone)
                                 return log_oom();
-
-                        goto have_timezone;
                 }
         }
 
-have_timezone:
         if (isempty(c->zone)) {
                 free(c->zone);
                 c->zone = NULL;



More information about the systemd-commits mailing list