Skip to content

Commit

Permalink
iio: isl29018: fix to return error or 0 in isl29018_write_raw()
Browse files Browse the repository at this point in the history
We had assigned the return value to 'ret' but ignored it when
return from isl29018_write_raw(), it's better to return 'ret'
instead of 0.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
  • Loading branch information
Wei Yongjun authored and jic23 committed Nov 19, 2012
1 parent 50d69b5 commit 6dc973d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/iio/light/isl29018.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ static int isl29018_write_raw(struct iio_dev *indio_dev,
}
mutex_unlock(&chip->lock);

return 0;
return ret;
}

static int isl29018_read_raw(struct iio_dev *indio_dev,
Expand Down

0 comments on commit 6dc973d

Please sign in to comment.