ipmi:ssif: resend_msg() cannot fail
authorCorey Minyard <cminyard@mvista.com>
Wed, 25 Jan 2023 16:11:06 +0000 (10:11 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:34:03 +0000 (09:34 +0100)
commit605f607f0735b631118696509fbda79d5fdf13f3
treeb4993a1aff3ac34b036836ea0c2994bd88b07328
parent0ad52040d1a93a6cd1d5d66bce370a1947a4419c
ipmi:ssif: resend_msg() cannot fail

commit 95767ed78a181d5404202627499f9cde56053b96 upstream.

The resend_msg() function cannot fail, but there was error handling
around using it.  Rework the handling of the error, and fix the out of
retries debug reporting that was wrong around this, too.

Cc: stable@vger.kernel.org
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/ipmi/ipmi_ssif.c