]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
sandbox: Fix warnings in cpu.c and os.c
authorSimon Glass <sjg@chromium.org>
Tue, 11 Nov 2014 19:47:08 +0000 (12:47 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 27 Nov 2014 03:25:39 +0000 (20:25 -0700)
commitf80a8bbee8665defb32f26029325667704bb4776
treea91330fe6cc6b6ecc724e581dd329cc2e336d452
parente48f3741c357246c78aa367bbd56fe2684f7bf8d
sandbox: Fix warnings in cpu.c and os.c

This fixes the following two problems:

cppcheck reports:
[arch/sandbox/cpu/start.c:132]: (error) Uninitialized variable: err
[arch/sandbox/cpu/os.c:371]: (error) Memory leak: fname

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Wolfgang Denk <wd@denx.de>
arch/sandbox/cpu/os.c
arch/sandbox/cpu/start.c