iio: remove redundant unlikely annotation
PATCH 1/1 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]>
--- drivers/iio/trigger/iio-trig-loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/trigger/iio-trig-loop.c +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);
Signature · 1 line
2.20.1
Quoted 4 lines · On Mon, 18 Feb 2019 15:53:26 +0800 Chengguang Xu <[email protected]> wrote:
unlikely has already included in
IS_ERR(),
so just remove redundant unlikely annotation.Signed-off-by Chengguang Xu <[email protected]>
Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to poke at it.
From an IIO point of view, we are almost certainly closed for the coming merge window, so this will be next time around.
Thanks,
Jonathan
Quoted 17 lines
--- drivers/iio/trigger/iio-trig-loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iio/trigger/iio-trig-loop.c +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);