Arnd Bergmann f65e9eacfa mfd: twl4030: Don't warn about uninitialized return code
If the twl4030_write_script function gets called with
a zero length argument, its return value does not
get set. We know that all scripts have a nonzero
length, but returning an error in case they ever
do is probably appropriate.

Without this patch, building omap2plus_defconfig results in:

drivers/mfd/twl4030-power.c: In function 'load_twl4030_script':
drivers/mfd/twl4030-power.c:414:5: error: 'err' may be used uninitialized in this function

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: "Kristo, Tero" <t-kristo@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2013-01-27 02:18:01 +01:00
..
2012-11-28 12:20:19 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-07-16 15:00:32 +02:00
2012-11-23 12:09:19 +01:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2013-01-27 01:35:32 +01:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:20:19 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-09-23 20:51:34 +02:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-12-12 11:45:16 -08:00
2012-11-28 12:21:11 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2013-01-27 01:30:20 +01:00
2013-01-27 01:30:20 +01:00
2013-01-27 01:30:20 +01:00
2013-01-27 01:30:20 +01:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-01-09 00:37:44 +01:00
2012-11-28 12:22:27 -08:00
2013-01-22 03:08:34 +01:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:20:19 -08:00
2012-11-28 12:22:27 -08:00