iio: sensors-core: st: Clean-up error handling in st_sensors_init_sensor()
authorLee Jones <lee.jones@linaro.org>
Mon, 16 Sep 2013 16:02:00 +0000 (17:02 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 21 Sep 2013 18:24:04 +0000 (19:24 +0100)
commitefd9566ff8aef07d89d9ee530b65b38dad3b8eb9
treea686651a9b41aa29873d306b82a5fcdc47ecb270
parent38d1c6a9116bd9642ebcb027ac66305590aa8488
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>
drivers/iio/common/st_sensors/st_sensors_core.c