From: David Tardon Date: Mon, 19 Jun 2023 10:35:05 +0000 (+0200) Subject: bus-polkit: drop unnecessary else X-Git-Tag: v254-rc1~173^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f8636446be95ef488a276e02f6ca107098bc9bfc;p=thirdparty%2Fsystemd.git bus-polkit: drop unnecessary else --- diff --git a/src/shared/bus-polkit.c b/src/shared/bus-polkit.c index 7fee10f24f0..08a84df2697 100644 --- a/src/shared/bus-polkit.c +++ b/src/shared/bus-polkit.c @@ -126,7 +126,7 @@ int bus_test_polkit( r = sd_bus_query_sender_privilege(call, capability); if (r < 0) return r; - else if (r > 0) + if (r > 0) return 1; #if ENABLE_POLKIT @@ -349,7 +349,7 @@ int bus_verify_polkit_async( r = sd_bus_query_sender_privilege(call, capability); if (r < 0) return r; - else if (r > 0) + if (r > 0) return 1; #if ENABLE_POLKIT