diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c index ef8a599122e..2b88614a8af 100644 --- a/src/login/pam_systemd.c +++ b/src/login/pam_systemd.c @@ -461,10 +461,8 @@ _public_ PAM_EXTERN int pam_sm_open_session( pam_syslog(handle, LOG_DEBUG, "pam-systemd initializing"); r = get_user_data(handle, &username, &pw); - if (r != PAM_SUCCESS) { - pam_syslog(handle, LOG_ERR, "Failed to get user data."); + if (r != PAM_SUCCESS) return r; - } /* Make sure we don't enter a loop by talking to * systemd-logind when it is actually waiting for the