char: ipmi: remove redundant variable 'type' and check
authorColin Ian King <colin.i.king@gmail.com>
Tue, 8 Jul 2025 15:18:05 +0000 (16:18 +0100)
committerCorey Minyard <corey@minyard.net>
Tue, 8 Jul 2025 17:15:44 +0000 (12:15 -0500)
commitf6f9760320a93930e70ad6016afbabc475bcdd09
tree435514e7cd889624854211e0c08722956728a533
parent8ffcb7560b4a15faf821df95e3ab532b2b020f8c
char: ipmi: remove redundant variable 'type' and check

The variable 'type' is assigned the value SI_INVALID which is zero
and later checks of 'type' is non-zero (which is always false). The
variable is not referenced anywhere else, so it is redundant and
so is the check, so remove these.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Message-ID: <20250708151805.1893858-1-colin.i.king@gmail.com>
Signed-off-by: Corey Minyard <corey@minyard.net>
drivers/char/ipmi/ipmi_si_intf.c