mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 10:04:12 +08:00
staging: unisys: visorbus: Split else if blocks into multiple if.
Visorbus_configure had a block of "else if" clauses at the beginning of the function. Simplify this to just being "if" clauses since each code block ended with a goto. Signed-off-by: David Kershner <david.kershner@unisys.com> Reviewed-by: Tim Sell <timothy.sell@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4d77e60616
commit
af53ce418b
@ -717,10 +717,12 @@ static int visorbus_configure(struct controlvm_message *inmsg,
|
||||
if (!bus_info) {
|
||||
err = -EINVAL;
|
||||
goto err_respond;
|
||||
} else if (bus_info->state.created == 0) {
|
||||
}
|
||||
if (bus_info->state.created == 0) {
|
||||
err = -EINVAL;
|
||||
goto err_respond;
|
||||
} else if (bus_info->pending_msg_hdr) {
|
||||
}
|
||||
if (bus_info->pending_msg_hdr) {
|
||||
err = -EIO;
|
||||
goto err_respond;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user