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

staging: unisys: visorbus: remove POSTCODEs from bus_create

Removed the POSTCODEs from the function bus_create.
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 35301b87
...@@ -577,16 +577,14 @@ bus_create(struct controlvm_message *inmsg) ...@@ -577,16 +577,14 @@ bus_create(struct controlvm_message *inmsg)
bus_info = visorbus_get_device_by_id(bus_no, BUS_ROOT_DEVICE, NULL); bus_info = visorbus_get_device_by_id(bus_no, BUS_ROOT_DEVICE, NULL);
if (bus_info && (bus_info->state.created == 1)) { if (bus_info && (bus_info->state.created == 1)) {
POSTCODE_LINUX(BUS_CREATE_FAILURE_PC, 0, bus_no, dev_err(&chipset_dev->acpi_device->dev,
DIAG_SEVERITY_ERR); "failed bus_create: already exists\n");
err = -EEXIST; err = -EEXIST;
goto err_respond; goto err_respond;
} }
bus_info = kzalloc(sizeof(*bus_info), GFP_KERNEL); bus_info = kzalloc(sizeof(*bus_info), GFP_KERNEL);
if (!bus_info) { if (!bus_info) {
POSTCODE_LINUX(BUS_CREATE_FAILURE_PC, 0, bus_no,
DIAG_SEVERITY_ERR);
err = -ENOMEM; err = -ENOMEM;
goto err_respond; goto err_respond;
} }
...@@ -595,8 +593,6 @@ bus_create(struct controlvm_message *inmsg) ...@@ -595,8 +593,6 @@ bus_create(struct controlvm_message *inmsg)
bus_info->chipset_bus_no = bus_no; bus_info->chipset_bus_no = bus_no;
bus_info->chipset_dev_no = BUS_ROOT_DEVICE; bus_info->chipset_dev_no = BUS_ROOT_DEVICE;
POSTCODE_LINUX(BUS_CREATE_ENTRY_PC, 0, bus_no, DIAG_SEVERITY_PRINT);
if (uuid_le_cmp(cmd->create_bus.bus_inst_uuid, spar_siovm_uuid) == 0) { if (uuid_le_cmp(cmd->create_bus.bus_inst_uuid, spar_siovm_uuid) == 0) {
err = save_crash_message(inmsg, CRASH_BUS); err = save_crash_message(inmsg, CRASH_BUS);
if (err) if (err)
...@@ -607,9 +603,6 @@ bus_create(struct controlvm_message *inmsg) ...@@ -607,9 +603,6 @@ bus_create(struct controlvm_message *inmsg)
pmsg_hdr = kzalloc(sizeof(*pmsg_hdr), pmsg_hdr = kzalloc(sizeof(*pmsg_hdr),
GFP_KERNEL); GFP_KERNEL);
if (!pmsg_hdr) { if (!pmsg_hdr) {
POSTCODE_LINUX(MALLOC_FAILURE_PC, cmd,
bus_info->chipset_bus_no,
DIAG_SEVERITY_ERR);
err = -ENOMEM; err = -ENOMEM;
goto err_free_bus_info; goto err_free_bus_info;
} }
...@@ -625,8 +618,6 @@ bus_create(struct controlvm_message *inmsg) ...@@ -625,8 +618,6 @@ bus_create(struct controlvm_message *inmsg)
cmd->create_bus.bus_data_type_uuid); cmd->create_bus.bus_data_type_uuid);
if (!visorchannel) { if (!visorchannel) {
POSTCODE_LINUX(BUS_CREATE_FAILURE_PC, 0, bus_no,
DIAG_SEVERITY_ERR);
err = -ENOMEM; err = -ENOMEM;
goto err_free_pending_msg; goto err_free_pending_msg;
} }
...@@ -638,7 +629,6 @@ bus_create(struct controlvm_message *inmsg) ...@@ -638,7 +629,6 @@ bus_create(struct controlvm_message *inmsg)
if (err) if (err)
goto err_destroy_channel; goto err_destroy_channel;
POSTCODE_LINUX(BUS_CREATE_EXIT_PC, 0, bus_no, DIAG_SEVERITY_PRINT);
return 0; return 0;
err_destroy_channel: err_destroy_channel:
......
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