iio:adc:vf610 ensure correct handing of interruption of wait for completion
authorJonathan Cameron <jic23@kernel.org>
Fri, 3 Jan 2014 22:02:00 +0000 (22:02 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sun, 2 Mar 2014 21:45:28 +0000 (21:45 +0000)
commitdb8fa7311d1ce642134c53e175ca0ae35e021344
tree353fe58930f0fa92f65dbdc0f8855697680965a7
parentbdc8cda1d010887c06bd8c29564b74cd61ec0a7b
iio:adc:vf610 ensure correct handing of interruption of wait for completion

Issue highlighted by smatch warning:

CHECK   drivers/iio/adc/vf610_adc.c
drivers/iio/adc/vf610_adc.c:466 vf610_read_raw() warn: unsigned 'ret' is never less than zero.

As wait_for_completion_interruptible_timeout can return -ERESTARTSTSYS, if
interrupted, ret must be signed.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Fugang Duan <B38611@freescale.com>
drivers/iio/adc/vf610_adc.c