Commit da56cb04 authored by David Kershner's avatar David Kershner Committed by Greg Kroah-Hartman

staging: unisys: visorbus: clean up parameter formatting

Cleans up parameter formatting in visorbus.
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Reviewed-by: default avatarTim Sell <timothy.sell@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3fbee197
...@@ -436,10 +436,9 @@ static int controlvm_responder(enum controlvm_id cmd_id, ...@@ -436,10 +436,9 @@ static int controlvm_responder(enum controlvm_id cmd_id,
return controlvm_respond(pending_msg_hdr, response, NULL); return controlvm_respond(pending_msg_hdr, response, NULL);
} }
static int device_changestate_responder( static int device_changestate_responder(enum controlvm_id cmd_id,
enum controlvm_id cmd_id,
struct visor_device *p, int response, struct visor_device *p, int response,
struct visor_segment_state response_state) struct visor_segment_state state)
{ {
struct controlvm_message outmsg; struct controlvm_message outmsg;
...@@ -449,7 +448,7 @@ static int device_changestate_responder( ...@@ -449,7 +448,7 @@ static int device_changestate_responder(
controlvm_init_response(&outmsg, p->pending_msg_hdr, response); controlvm_init_response(&outmsg, p->pending_msg_hdr, response);
outmsg.cmd.device_change_state.bus_no = p->chipset_bus_no; outmsg.cmd.device_change_state.bus_no = p->chipset_bus_no;
outmsg.cmd.device_change_state.dev_no = p->chipset_dev_no; outmsg.cmd.device_change_state.dev_no = p->chipset_dev_no;
outmsg.cmd.device_change_state.state = response_state; outmsg.cmd.device_change_state.state = state;
return visorchannel_signalinsert(chipset_dev->controlvm_channel, return visorchannel_signalinsert(chipset_dev->controlvm_channel,
CONTROLVM_QUEUE_REQUEST, &outmsg); CONTROLVM_QUEUE_REQUEST, &outmsg);
} }
...@@ -1045,8 +1044,8 @@ static int parahotplug_request_kickoff(struct parahotplug_request *req) ...@@ -1045,8 +1044,8 @@ static int parahotplug_request_kickoff(struct parahotplug_request *req)
struct controlvm_message_packet *cmd = &req->msg.cmd; struct controlvm_message_packet *cmd = &req->msg.cmd;
char env_cmd[40], env_id[40], env_state[40], env_bus[40], env_dev[40], char env_cmd[40], env_id[40], env_state[40], env_bus[40], env_dev[40],
env_func[40]; env_func[40];
char *envp[] = { char *envp[] = { env_cmd, env_id, env_state, env_bus, env_dev,
env_cmd, env_id, env_state, env_bus, env_dev, env_func, NULL env_func, NULL
}; };
sprintf(env_cmd, "VISOR_PARAHOTPLUG=1"); sprintf(env_cmd, "VISOR_PARAHOTPLUG=1");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment