projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b397f82
)
iio: remove redundant unlikely annotation
author
Chengguang Xu
<cgxu519@gmx.com>
Mon, 18 Feb 2019 07:53:26 +0000
(15:53 +0800)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:19:40 +0000
(20:19 +0100)
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>
drivers/iio/trigger/iio-trig-loop.c
patch
|
blob
|
history
diff --git
a/drivers/iio/trigger/iio-trig-loop.c
b/drivers/iio/trigger/iio-trig-loop.c
index 94a90e0a3fdb99d2581e50da3f793371a59b2d69..9258d3cf149bf3cd9ca92ccfa0796e0aa1ed3de4 100644
(file)
--- a/
drivers/iio/trigger/iio-trig-loop.c
+++ b/
drivers/iio/trigger/iio-trig-loop.c
@@
-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);