mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 05:04:00 +08:00
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: David Kershner <david.kershner@unisys.com> Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9ed146cdb9
commit
1d7f552203
@ -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,
|
||||
int response,
|
||||
enum ultra_chipset_feature features)
|
||||
@ -507,10 +507,8 @@ controlvm_respond_chipset_init(struct controlvm_message_header *msg_hdr,
|
||||
|
||||
controlvm_init_response(&outmsg, msg_hdr, response);
|
||||
outmsg.cmd.init_chipset.features = features;
|
||||
if (visorchannel_signalinsert(controlvm_channel,
|
||||
CONTROLVM_QUEUE_REQUEST, &outmsg)) {
|
||||
return;
|
||||
}
|
||||
return visorchannel_signalinsert(controlvm_channel,
|
||||
CONTROLVM_QUEUE_REQUEST, &outmsg);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user