From cf80332ddb98c109c5abc35c74d6dd371ca7fa5b Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Thu, 11 Jan 2024 20:03:09 +0100 Subject: pam_debug: simplify state function The return value of function state is never checked. Signed-off-by: Tobias Stoeckmann --- modules/pam_debug/pam_debug.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/modules/pam_debug/pam_debug.c b/modules/pam_debug/pam_debug.c index 37bf8b95..0def5160 100644 --- a/modules/pam_debug/pam_debug.c +++ b/modules/pam_debug/pam_debug.c @@ -21,17 +21,11 @@ /* --- authentication management functions --- */ -static int state(pam_handle_t *pamh, const char *text) +static void state(pam_handle_t *pamh, const char *text) { - int retval; - - retval = pam_info (pamh, "%s", text); - - if (retval != PAM_SUCCESS) { + if (pam_info(pamh, "%s", text) != PAM_SUCCESS) { D(("pam_info failed")); } - - return retval; } static int parse_args(int retval, const char *event, -- cgit v1.2.3