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

staging: unisys: visorbus: controlvm_respond_chipset_init add error handling

Now that visorchannel_signalinsert returns a Linux error code, we need
to convert controlvm_respond_chipset_init to return an error instead of
a void.
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Reported-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9ed146cd
...@@ -498,7 +498,7 @@ controlvm_init_response(struct controlvm_message *msg, ...@@ -498,7 +498,7 @@ controlvm_init_response(struct controlvm_message *msg,
} }
} }
static void static int
controlvm_respond_chipset_init(struct controlvm_message_header *msg_hdr, controlvm_respond_chipset_init(struct controlvm_message_header *msg_hdr,
int response, int response,
enum ultra_chipset_feature features) enum ultra_chipset_feature features)
...@@ -507,10 +507,8 @@ controlvm_respond_chipset_init(struct controlvm_message_header *msg_hdr, ...@@ -507,10 +507,8 @@ controlvm_respond_chipset_init(struct controlvm_message_header *msg_hdr,
controlvm_init_response(&outmsg, msg_hdr, response); controlvm_init_response(&outmsg, msg_hdr, response);
outmsg.cmd.init_chipset.features = features; outmsg.cmd.init_chipset.features = features;
if (visorchannel_signalinsert(controlvm_channel, return visorchannel_signalinsert(controlvm_channel,
CONTROLVM_QUEUE_REQUEST, &outmsg)) { CONTROLVM_QUEUE_REQUEST, &outmsg);
return;
}
} }
static void static void
......
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