diff options
author | Arnd Bergmann <[email protected]> | 2013-01-25 14:14:26 +0000 |
---|---|---|
committer | Samuel Ortiz <[email protected]> | 2013-01-27 02:18:01 +0100 |
commit | f65e9eacfad60cd05d1bac7defb6ff6b50dcfb5b (patch) | |
tree | 5d44d49b4b471f5aa715549298bce6128a10830f /lib/cpu-notifier-error-inject.c | |
parent | 0a8c290ac58a86d5e1f2193abcd4d74ec075e20c (diff) |
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 <[email protected]>
Reviewed-by: Peter Ujfalusi <[email protected]>
Reviewed-by: Amit Kucheria <[email protected]>
Cc: Kevin Hilman <[email protected]>
Cc: "Kristo, Tero" <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions