From: Thomas Hindoe Paaboel Andersen Date: Sat, 15 Nov 2014 22:43:09 +0000 (+0100) Subject: pam_systemd: remove unused null check X-Git-Tag: v218~431 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=8e24a4f8b6f53883ea515ae8f27fb6b1795973b4 pam_systemd: remove unused null check username was already checked with isempty() and cannot be null at this point. CID#1237766 --- diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c index 9250a6903..4974c5133 100644 --- a/src/login/pam_systemd.c +++ b/src/login/pam_systemd.c @@ -114,7 +114,7 @@ static int get_user_data( } *ret_pw = pw; - *ret_username = username ? username : pw->pw_name; + *ret_username = username; return PAM_SUCCESS; }