diff options
| author | 2010-08-10 07:37:33 +0200 | |
|---|---|---|
| committer | 2010-08-31 11:40:35 -0700 | |
| commit | 213fd2270450f7b5f98803e58bc25063c249e032 (patch) | |
| tree | f74f3f4548db896173ddd25ccb80abe4c1c0adf9 /scripts/patch-kernel | |
| parent | drivers/staging/iio: call mutex_unlock in error handling code (diff) | |
Staging: iio: signedness bug
i2c_smbus_read_byte_data() returns an s32 type. We need to change
"rate" to signed for the error handling to work.
Also I changed it to propogate the error code instead of just returning
-EINVAL. Other error codes could be -EAGAIN for example.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
