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>
This commit is contained in:
parent
b397f82585
commit
6b079a807b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user