ipmi: Consolidate the run to completion checking for xmit msgs lock

[ Upstream commit 1d90e6c1a5 ]

It made things hard to read, move the check to a function.

Signed-off-by: Corey Minyard <corey@minyard.net>
Reviewed-by: Breno Leitao <leitao@debian.org>
Stable-dep-of: 62cd145453 ("ipmi:msghandler: Handle error returns from the SMI sender")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Corey Minyard 2026-03-17 13:04:31 -04:00 • committed by Greg Kroah-Hartman
commit 1e363c11cd