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:
f6517f2
)
staging:iio: iio_trigger_unregister - remove rather strange search for what we alread...
author
Jonathan Cameron
<jic23@cam.ac.uk>
Fri, 15 Apr 2011 17:55:54 +0000
(18:55 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 26 Apr 2011 00:23:08 +0000
(17:23 -0700)
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/industrialio-trigger.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/industrialio-trigger.c
b/drivers/staging/iio/industrialio-trigger.c
index 714ce06f9dbc3f9c4253edf220fd952897c7ac12..083847c5c2d882d1110a61a2ab2ac325a1a8f62b 100644
(file)
--- a/
drivers/staging/iio/industrialio-trigger.c
+++ b/
drivers/staging/iio/industrialio-trigger.c
@@
-134,14
+134,8
@@
EXPORT_SYMBOL(iio_trigger_register);
void iio_trigger_unregister(struct iio_trigger *trig_info)
{
- struct iio_trigger *cursor;
-
mutex_lock(&iio_trigger_list_lock);
- list_for_each_entry(cursor, &iio_trigger_list, list)
- if (cursor == trig_info) {
- list_del(&cursor->list);
- break;
- }
+ list_del(&trig_info->list);
mutex_unlock(&iio_trigger_list_lock);
iio_trigger_unregister_sysfs(trig_info);