ipmi_si: Introduce ipmi_panic_event_str[] array
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 2 Apr 2021 17:43:29 +0000 (20:43 +0300)
committerCorey Minyard <cminyard@mvista.com>
Fri, 2 Apr 2021 17:53:28 +0000 (12:53 -0500)
commit649a7d46d0840fc44d181cc6b3e608b46c77a86d
tree34fedf6fef84d1316ed46abe53fe734d62a97e8d
parentbd7a33bfa1f1d0295058003899568570a7de0998
ipmi_si: Introduce ipmi_panic_event_str[] array

Instead of repeating twice the constant literals, introduce
ipmi_panic_event_str[] array. It allows to simplify the code
with help of match_string() API.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Message-Id: <20210402174334.13466-6-andriy.shevchenko@linux.intel.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_msghandler.c