hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/iio/trigger/iio-trig-loop.c
....@@ -1,7 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright 2016 Jonathan Cameron <jic23@kernel.org>
3
- *
4
- * Licensed under the GPL-2.
54 *
65 * Based on a mashup of the hrtimer trigger and continuous sampling proposal of
76 * Gregor Boirie <gregor.boirie@parrot.com>
....@@ -60,7 +59,7 @@
6059 if (state) {
6160 loop_trig->task = kthread_run(iio_loop_thread,
6261 trig, trig->name);
63
- if (unlikely(IS_ERR(loop_trig->task))) {
62
+ if (IS_ERR(loop_trig->task)) {
6463 dev_err(&trig->dev,
6564 "failed to create trigger loop thread\n");
6665 return PTR_ERR(loop_trig->task);