ipmi: Remove unneeded set_run_to_completion call
authorHidehiro Kawai <hidehiro.kawai.ez@hitachi.com>
Mon, 27 Jul 2015 05:55:16 +0000 (14:55 +0900)
committerCorey Minyard <cminyard@mvista.com>
Thu, 3 Sep 2015 20:02:27 +0000 (15:02 -0500)
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 <hidehiro.kawai.ez@hitachi.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_msghandler.c

index e9ea29c4ec604fb0d547777590877ef4797e8c69..5e31c339062eec8b43ea316d53fb341b4c91bd1d 100644 (file)
@@ -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);
        }