iio: isl29018: fix to return error or 0 in isl29018_write_raw()

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>
This commit is contained in:
Wei Yongjun 2012-11-08 09:05:00 +00:00 committed by Jonathan Cameron
parent 50d69b5184
commit 6dc973d4fd
1 changed files with 1 additions and 1 deletions

View File

@ -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,