mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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:
1 parent
b397f82585
commit
6b079a807b
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user