From: Junio C Hamano Date: Thu, 23 Sep 2021 20:44:46 +0000 (-0700) Subject: Merge branch 'ab/gc-remove-unused-call' X-Git-Tag: v2.34.0-rc0~131 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5866edf97c19bea2b0557beeaec4223ad54e202;p=thirdparty%2Fgit.git Merge branch 'ab/gc-remove-unused-call' Code clean-up. * ab/gc-remove-unused-call: gc: remove unused launchctl_get_uid() call --- b5866edf97c19bea2b0557beeaec4223ad54e202 diff --cc builtin/gc.c index b00b396f55,db76af4f31..6b3de3dd51 --- a/builtin/gc.c +++ b/builtin/gc.c @@@ -1694,15 -1613,11 +1692,11 @@@ static int launchctl_list_contains_plis if (start_command(&child)) die(_("failed to start launchctl")); - result = finish_command(&child); - - free(uid); - /* Returns failure if 'name' doesn't exist. */ - return !result; + return !finish_command(&child); } -static int launchctl_schedule_plist(const char *exec_path, enum schedule_priority schedule, const char *cmd) +static int launchctl_schedule_plist(const char *exec_path, enum schedule_priority schedule) { int i, fd; const char *preamble, *repeat;