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. Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
93c76c9c1d
commit
4b4b535e64
|
@ -2054,11 +2054,8 @@ Away:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (queue_delayed_work(Periodic_controlvm_workqueue,
|
queue_delayed_work(Periodic_controlvm_workqueue,
|
||||||
&Periodic_controlvm_work, Poll_jiffies) < 0) {
|
&Periodic_controlvm_work, Poll_jiffies);
|
||||||
LOGERR("queue_delayed_work failed!");
|
|
||||||
POSTCODE_LINUX_2(QUEUE_DELAYED_WORK_PC, POSTCODE_SEVERITY_ERR);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -2192,11 +2189,8 @@ Away:
|
||||||
|
|
||||||
Poll_jiffies = POLLJIFFIES_CONTROLVMCHANNEL_SLOW;
|
Poll_jiffies = POLLJIFFIES_CONTROLVMCHANNEL_SLOW;
|
||||||
|
|
||||||
if (queue_delayed_work(Periodic_controlvm_workqueue,
|
queue_delayed_work(Periodic_controlvm_workqueue,
|
||||||
&Periodic_controlvm_work, Poll_jiffies) < 0) {
|
&Periodic_controlvm_work, Poll_jiffies);
|
||||||
LOGERR("queue_delayed_work failed!");
|
|
||||||
POSTCODE_LINUX_2(QUEUE_DELAYED_WORK_PC, POSTCODE_SEVERITY_ERR);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue