From: Lee Jones Date: Mon, 16 Sep 2013 16:02:00 +0000 (+0100) Subject: iio: sensors-core: st: Clean-up error handling in st_sensors_init_sensor() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~694^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efd9566ff8aef07d89d9ee530b65b38dad3b8eb9;p=pandora-kernel.git 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 Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed