From ed62937f7856f17ff6ed94cc22ff6f224443b5aa Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Wed, 17 Jan 2024 14:55:05 +0000 Subject: [PATCH] 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 --- src/basic/user-util.c | 6 ------ 1 file changed, 6 deletions(-) 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; } -- 2.47.3