diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-11-06 09:13:00 +0000 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-06-14 15:31:20 +0100 |
commit | 4f3bcd878f1d3c730fe00f619b7260c6125d49eb (patch) | |
tree | a1cca2b92384c509819893f9931fd8b48d8c824c /drivers/scsi | |
parent | 19bc4981a213d0c5b0e1e8b08815c0b26f01ec54 (diff) |
iio: adc: at91: signedness bug in at91_adc_get_trigger_value_by_name()
at91_adc_get_trigger_value_by_name() was returning -ENOMEM truncated to
a positive u8 and that doesn't work. I've changed it to int and
refactored it to preserve the error code.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Tested-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Cc: Stable@vger.kernel.org
Diffstat (limited to 'drivers/scsi')
0 files changed, 0 insertions, 0 deletions