Skip to contentSkip to conversation

staging: unisys: remove incorrect error handling after queue_delayed_work

PATCH New Daeseok Youn 1 participant 1 message Mar 11, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: unisys: remove incorrect error handling after queue_delayed_work

The queue_delayed_work() return false if the work is already on the queue, true otherwise.
So return value cannot be less than zero.

---
 .../unisys/visorchipset/visorchipset_main.c        |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)
drivers/staging/unisys/visorchipset/visorchipset_main.c +4 -10
index 400cb03..0dff759 100644
@@ -2055,11 +2055,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
@@ -2193,11 +2190,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
Signature · 1 line
1.7.4.4