]> git.baikalelectronics.ru Git - kernel.git/commit
staging:iio:triggers Remove unecessary existence checks and return val
authorJonathan Cameron <jic23@cam.ac.uk>
Wed, 26 Oct 2011 16:27:38 +0000 (17:27 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 00:30:30 +0000 (16:30 -0800)
commit875c8f89cf1b5639f3507e2db24a7c7aeef77a49
tree1e29321186c4b4416695587d6bb031711ff52a3e
parentda3594d616457aecb26a1d70880c1b97c53b9879
staging:iio:triggers Remove unecessary existence checks and return val

Postenable and predisable are called via buffer->ops so  don't
need to check if buffer exists.

The return value of iio_device_register_trigger_consumer is
always zero and it isn't checked anyway so get rid of it.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/iio_core_trigger.h
drivers/staging/iio/industrialio-trigger.c