staging: iio: Function iio_get_new_idr_val() return negative value if fails.
authorSonic Zhang <sonic.adi@gmail.com>
Mon, 22 Mar 2010 12:27:05 +0000 (12:27 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 30 Apr 2010 16:30:09 +0000 (09:30 -0700)
commita8947fcf3bbeda9fc6ff1205e51f8ff1b0128cc4
tree5a7774c771316cb5554743c53dc34f4f7e44eb30
parentee58cb2bcda99ae934176ad5ae66f7699d23cd3d
staging: iio: Function iio_get_new_idr_val() return negative value if fails.

Function iio_get_new_idr_val() return negative value if fails.
So, only error when ret < 0 in iio_device_register_eventset().

Signed-off-by: Sonic Zhang <sonic.adi@gmail.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/industrialio-core.c