summaryrefslogtreecommitdiff
path: root/drivers/iio/trigger/iio-trig-loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/trigger/iio-trig-loop.c')
-rw-r--r--drivers/iio/trigger/iio-trig-loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/trigger/iio-trig-loop.c b/drivers/iio/trigger/iio-trig-loop.c
index 94a90e0a3fdb..9258d3cf149b 100644
--- a/drivers/iio/trigger/iio-trig-loop.c
+++ b/drivers/iio/trigger/iio-trig-loop.c
@@ -60,7 +60,7 @@ static int iio_loop_trigger_set_state(struct iio_trigger *trig, bool state)
if (state) {
loop_trig->task = kthread_run(iio_loop_thread,
trig, trig->name);
- if (unlikely(IS_ERR(loop_trig->task))) {
+ if (IS_ERR(loop_trig->task)) {
dev_err(&trig->dev,
"failed to create trigger loop thread\n");
return PTR_ERR(loop_trig->task);