Skip to contentSkip to conversation

iio: remove redundant unlikely annotation

PATCH Applied Chengguang Xu 2 participants 2 messages Feb 18, 2019 – Feb 20, 2019 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: remove redundant unlikely annotation

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

---
 drivers/iio/trigger/iio-trig-loop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/trigger/iio-trig-loop.c +1 -1
index 94a90e0a3fdb..9258d3cf149b 100644
@@ -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
maintainer Applied
#1 lore raw
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.

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
index 94a90e0a3fdb..9258d3cf149b 100644
@@ -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);