Commit 6b079a80 authored by Chengguang Xu's avatar Chengguang Xu Committed by Jonathan Cameron
Browse files

iio: remove redundant unlikely annotation



unlikely has already included in IS_ERR(),
so just remove redundant unlikely annotation.

Signed-off-by: default avatarChengguang Xu <cgxu519@gmx.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent b397f825
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);