iio: remove redundant unlikely annotation

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

Signed-off-by: Chengguang Xu <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
This commit is contained in:
Chengguang Xu authored and Jonathan Cameron committed 2019-04-04 20:19:40 +01:00
1 parent b397f82585
commit 6b079a807b
1 file changed
+1 -1
+1 -1
View 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);