commit | efd9566ff8aef07d89d9ee530b65b38dad3b8eb9 | [log] [tgz] |
---|---|---|
author | Lee Jones <lee.jones@linaro.org> | Mon Sep 16 17:02:00 2013 +0100 |
committer | Jonathan Cameron <jic23@kernel.org> | Sat Sep 21 19:24:04 2013 +0100 |
tree | a686651a9b41aa29873d306b82a5fcdc47ecb270 | |
parent | 38d1c6a9116bd9642ebcb027ac66305590aa8488 [diff] |
iio: sensors-core: st: Clean-up error handling in st_sensors_init_sensor() Strip out all those unnecessary gotos and just return the error right away. Aids to simplicity and reduces code. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>