From: Luca Boccassi Date: Wed, 17 Jan 2024 14:55:05 +0000 (+0000) Subject: user-util: remove dead code X-Git-Tag: v256-rc1~1121 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed62937f7856f17ff6ed94cc22ff6f224443b5aa;p=thirdparty%2Fsystemd.git user-util: remove dead code The branch explicitly checks that all of these ret_ variables are NULL, so they will never be used. Follow-up for 83e9b584dba1352493d8d2337bfe20d923d5163b CID#1533239 CID#1533240 CID#1533241 --- diff --git a/src/basic/user-util.c b/src/basic/user-util.c index a0a47aee4f8..1cea96242e7 100644 --- a/src/basic/user-util.c +++ b/src/basic/user-util.c @@ -280,12 +280,6 @@ int get_user_creds( if (ret_uid) *ret_uid = u; - if (ret_gid) - *ret_gid = GID_INVALID; - if (ret_home) - *ret_home = NULL; - if (ret_shell) - *ret_shell = NULL; return 0; }