diff options
author | David Kershner | 2017-08-22 19:27:24 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2017-08-23 00:12:52 +0200 |
commit | fdf5b9ac3e8e91516a85ee43d3b9d63b40639e94 (patch) | |
tree | d9b131474bebdef3ac72080b7ea4652c1276c346 /drivers/staging/unisys/visorbus/visorchipset.c | |
parent | staging: unisys: reference bus_no and dev_no directly (diff) | |
download | kernel-qcow2-linux-fdf5b9ac3e8e91516a85ee43d3b9d63b40639e94.tar.gz kernel-qcow2-linux-fdf5b9ac3e8e91516a85ee43d3b9d63b40639e94.tar.xz kernel-qcow2-linux-fdf5b9ac3e8e91516a85ee43d3b9d63b40639e94.zip |
staging: unisys: visorbus: Get rid of passthrough function visorchipset_bus_create
The function visorchipset_bus_create just called visorbus_create_instance,
we should just combine it with visorbus_create_instance.
Reviewed-by: Sameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
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>
Diffstat (limited to 'drivers/staging/unisys/visorbus/visorchipset.c')
-rw-r--r-- | drivers/staging/unisys/visorbus/visorchipset.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c index 83fcf6f58c5d..7094d629635c 100644 --- a/drivers/staging/unisys/visorbus/visorchipset.c +++ b/drivers/staging/unisys/visorbus/visorchipset.c @@ -644,9 +644,8 @@ static int visorbus_create(struct controlvm_message *inmsg) bus_info->visorchannel = visorchannel; - /* Response will be handled by visorchipset_bus_create */ - err = visorchipset_bus_create(bus_info); - /* If visorchipset_bus_create didn't respond, need to respond here */ + /* Response will be handled by visorbus_create_instance on success */ + err = visorbus_create_instance(bus_info); if (err) goto err_destroy_channel; |