diff options
| author | Dan Carpenter <error27@gmail.com> | 2010-08-10 09:37:33 +0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-31 22:40:35 +0400 |
| commit | 213fd2270450f7b5f98803e58bc25063c249e032 (patch) | |
| tree | f74f3f4548db896173ddd25ccb80abe4c1c0adf9 /scripts/checkstack.pl | |
| parent | d1ae4da731a6e049a675097ebfd9a02b9b50530e (diff) | |
| download | linux-213fd2270450f7b5f98803e58bc25063c249e032.tar.xz | |
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/checkstack.pl')
0 files changed, 0 insertions, 0 deletions
