diff options
author | Dan Carpenter <[email protected]> | 2014-11-06 09:13:00 +0000 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2014-06-14 15:31:20 +0100 |
commit | 4f3bcd878f1d3c730fe00f619b7260c6125d49eb (patch) | |
tree | a1cca2b92384c509819893f9931fd8b48d8c824c /net/unix/af_unix.c | |
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 <[email protected]>
Acked-by: Alexandre Belloni <[email protected]>
Tested-by: Alexandre Belloni <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Cc: [email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions