summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2024-01-17 15:55:05 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2024-01-17 17:11:15 +0100
commited62937f7856f17ff6ed94cc22ff6f224443b5aa (patch)
treebe0e22252250dccb8acc722c27da1e68c45ad3c6
parentrun: strjoina is used, not sprintf (diff)
downloadsystemd-ed62937f7856f17ff6ed94cc22ff6f224443b5aa.tar.xz
systemd-ed62937f7856f17ff6ed94cc22ff6f224443b5aa.zip
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
-rw-r--r--src/basic/user-util.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/basic/user-util.c b/src/basic/user-util.c
index a0a47aee4f..1cea96242e 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;
}