Re: [PATCH v1 05/10] ipmi_si: Introduce panic_event_str array

2021-04-02 Thread Corey Minyard
On Tue, Mar 30, 2021 at 09:16:44PM +0300, Andy Shevchenko wrote: > Instead of twice repeat the constant literals, introduce > panic_event_str array. It allows to simplify the code with > help of match_string() API. > > Signed-off-by: Andy Shevchenko > --- > drivers/char/ipmi/ipmi_msghandler.c |

[PATCH v1 05/10] ipmi_si: Introduce panic_event_str array

2021-03-30 Thread Andy Shevchenko
Instead of twice repeat the constant literals, introduce panic_event_str array. It allows to simplify the code with help of match_string() API. Signed-off-by: Andy Shevchenko --- drivers/char/ipmi/ipmi_msghandler.c | 49 ++--- 1 file changed, 17 insertions(+), 32 deletion