Skip to content

Commit

Permalink
ipmi: Remove unneeded set_run_to_completion call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hidehiro Kawai authored and Corey Minyard committed Sep 3, 2015
1 parent 81d02b7 commit b0868dd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/char/ipmi/ipmi_msghandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit b0868dd

Please sign in to comment.