Re: [PATCH] iio:adc:vf610 ensure correct handing of interruption of wait for completion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/03/14 01:36, fugang.duan@xxxxxxxxxxxxx wrote:
From: Jonathan Cameron <jic23@xxxxxxxxxx>
Data: Sunday, March 02, 2014 6:03 AM

To: linux-iio@xxxxxxxxxxxxxxx
Cc: Jonathan Cameron; Dan Carpenter; Duan Fugang-B38611
Subject: [PATCH] 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@xxxxxxxxxx>

Acked-by: Fugang Duan <B38611@xxxxxxxxxxxxx>
Applied to the togreg branch of iio.git.

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux