.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright 2016 Jonathan Cameron <jic23@kernel.org> |
---|
3 | | - * |
---|
4 | | - * Licensed under the GPL-2. |
---|
5 | 4 | * |
---|
6 | 5 | * Based on a mashup of the hrtimer trigger and continuous sampling proposal of |
---|
7 | 6 | * Gregor Boirie <gregor.boirie@parrot.com> |
---|
.. | .. |
---|
60 | 59 | if (state) { |
---|
61 | 60 | loop_trig->task = kthread_run(iio_loop_thread, |
---|
62 | 61 | trig, trig->name); |
---|
63 | | - if (unlikely(IS_ERR(loop_trig->task))) { |
---|
| 62 | + if (IS_ERR(loop_trig->task)) { |
---|
64 | 63 | dev_err(&trig->dev, |
---|
65 | 64 | "failed to create trigger loop thread\n"); |
---|
66 | 65 | return PTR_ERR(loop_trig->task); |
---|