summaryrefslogtreecommitdiffstats
path: root/drivers/iio/trigger
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@gmx.com>2019-02-18 15:53:26 +0800
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-04-04 20:19:40 +0100
commit6b079a807b368dc0b6ccafb8654329c72e0812a5 (patch)
tree4a9d4f9e4cadf5357a76570e338c2d6f70cf2b63 /drivers/iio/trigger
parentb397f82585c3101dcf92642dd359891e66d00c55 (diff)
downloadlinux-6b079a807b368dc0b6ccafb8654329c72e0812a5.tar.gz
linux-6b079a807b368dc0b6ccafb8654329c72e0812a5.tar.bz2
linux-6b079a807b368dc0b6ccafb8654329c72e0812a5.zip
iio: remove redundant unlikely annotation
unlikely has already included in IS_ERR(), so just remove redundant unlikely annotation. Signed-off-by: Chengguang Xu <cgxu519@gmx.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/trigger')
-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);