aboutsummaryrefslogtreecommitdiff
path: root/drivers/iio/industrialio-sw-trigger.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/industrialio-sw-trigger.c')
-rw-r--r--drivers/iio/industrialio-sw-trigger.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iio/industrialio-sw-trigger.c b/drivers/iio/industrialio-sw-trigger.c
index 311f9fe5aa34..8d24fb159cc9 100644
--- a/drivers/iio/industrialio-sw-trigger.c
+++ b/drivers/iio/industrialio-sw-trigger.c
@@ -167,9 +167,7 @@ static int __init iio_sw_trigger_init(void)
configfs_register_default_group(&iio_configfs_subsys.su_group,
"triggers",
&iio_triggers_group_type);
- if (IS_ERR(iio_triggers_group))
- return PTR_ERR(iio_triggers_group);
- return 0;
+ return PTR_ERR_OR_ZERO(iio_triggers_group);
}
module_init(iio_sw_trigger_init);