staging: unisys: remove incorrect error handling after queue_delayed_work
authorDaeseok Youn <daeseok.youn@gmail.com>
Tue, 11 Mar 2014 07:31:03 +0000 (00:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 21:42:40 +0000 (14:42 -0700)
The queue_delayed_work() return false if the work is
already on the queue, true otherwise.
So return value cannot be less than zero.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorchipset/visorchipset_main.c

index 2a9e30cdebe0465960365c075bb9beddf5a18314..0e404e89ae96c6f9c61894cc1d909423e12142e4 100644 (file)
@@ -2054,11 +2054,8 @@ Away:
                }
        }
 
-       if (queue_delayed_work(Periodic_controlvm_workqueue,
-                              &Periodic_controlvm_work, Poll_jiffies) < 0) {
-               LOGERR("queue_delayed_work failed!");
-               POSTCODE_LINUX_2(QUEUE_DELAYED_WORK_PC, POSTCODE_SEVERITY_ERR);
-       }
+       queue_delayed_work(Periodic_controlvm_workqueue,
+                          &Periodic_controlvm_work, Poll_jiffies);
 }
 
 static void
@@ -2192,11 +2189,8 @@ Away:
 
        Poll_jiffies = POLLJIFFIES_CONTROLVMCHANNEL_SLOW;
 
-       if (queue_delayed_work(Periodic_controlvm_workqueue,
-                              &Periodic_controlvm_work, Poll_jiffies) < 0) {
-               LOGERR("queue_delayed_work failed!");
-               POSTCODE_LINUX_2(QUEUE_DELAYED_WORK_PC, POSTCODE_SEVERITY_ERR);
-       }
+       queue_delayed_work(Periodic_controlvm_workqueue,
+                          &Periodic_controlvm_work, Poll_jiffies);
 }
 
 static void