projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b91617e
)
iio:prox:sx9500 trivial simplification of return path in init function.
author
Jonathan Cameron
<jic23@kernel.org>
Sat, 2 May 2015 10:29:42 +0000
(11:29 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Thu, 7 May 2015 09:42:31 +0000
(10:42 +0100)
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Vlad Dogaru <vlad.dogaru@intel.com>
drivers/iio/proximity/sx9500.c
patch
|
blob
|
history
diff --git
a/drivers/iio/proximity/sx9500.c
b/drivers/iio/proximity/sx9500.c
index f1e9d734b6b6ba6ad11a44094b0da0a2efcd41d2..2042e375f8351de6dc04b0b6ae7861702d17c6cf 100644
(file)
--- a/
drivers/iio/proximity/sx9500.c
+++ b/
drivers/iio/proximity/sx9500.c
@@
-859,11
+859,7
@@
static int sx9500_init_device(struct iio_dev *indio_dev)
return ret;
}
- ret = sx9500_init_compensation(indio_dev);
- if (ret < 0)
- return ret;
-
- return 0;
+ return sx9500_init_compensation(indio_dev);
}
static void sx9500_gpio_probe(struct i2c_client *client,