Commit 3025ee74 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

staging: unisys: remove some dead code

queue_delayed_work() returns bool, not negative error codes.  It returns
false if the work has already been queued or true otherwise.  Since
we don't care about that, we can just remove the test.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Acked-by: default avatarDon Zickus <dzickus@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 58e1e542
...@@ -2310,13 +2310,8 @@ visorchipset_init(struct acpi_device *acpi_device) ...@@ -2310,13 +2310,8 @@ visorchipset_init(struct acpi_device *acpi_device)
} }
most_recent_message_jiffies = jiffies; most_recent_message_jiffies = jiffies;
poll_jiffies = POLLJIFFIES_CONTROLVMCHANNEL_FAST; poll_jiffies = POLLJIFFIES_CONTROLVMCHANNEL_FAST;
rc = queue_delayed_work(periodic_controlvm_workqueue, queue_delayed_work(periodic_controlvm_workqueue,
&periodic_controlvm_work, poll_jiffies); &periodic_controlvm_work, poll_jiffies);
if (rc < 0) {
POSTCODE_LINUX_2(QUEUE_DELAYED_WORK_PC,
DIAG_SEVERITY_ERR);
goto cleanup;
}
visorchipset_platform_device.dev.devt = major_dev; visorchipset_platform_device.dev.devt = major_dev;
if (platform_device_register(&visorchipset_platform_device) < 0) { if (platform_device_register(&visorchipset_platform_device) < 0) {
......
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