From: Hidehiro Kawai Date: Mon, 27 Jul 2015 05:55:16 +0000 (+0900) Subject: ipmi: Remove unneeded set_run_to_completion call X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b0868dd5c17c0d9cc8919e786db2e428aa225621;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ipmi: Remove unneeded set_run_to_completion call send_panic_events() calls intf->handlers->set_run_to_completion(), but it has already been done in the caller function panic_event(). Remove it from send_panic_events(). Signed-off-by: Hidehiro Kawai Signed-off-by: Corey Minyard --- diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c index e9ea29c4ec60..5e31c339062e 100644 --- a/drivers/char/ipmi/ipmi_msghandler.c +++ b/drivers/char/ipmi/ipmi_msghandler.c @@ -4368,9 +4368,7 @@ static void send_panic_events(char *str) /* Interface is not ready. */ continue; - intf->run_to_completion = 1; /* Send the event announcing the panic. */ - intf->handlers->set_run_to_completion(intf->send_info, 1); ipmi_panic_request_and_wait(intf, &addr, &msg); }