OSDN Git Service

iio: remove redundant unlikely annotation
authorChengguang Xu <cgxu519@gmx.com>
Mon, 18 Feb 2019 07:53:26 +0000 (15:53 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:19:40 +0000 (20:19 +0100)
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>
drivers/iio/trigger/iio-trig-loop.c

index 94a90e0..9258d3c 100644 (file)
@@ -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);