diff options
author | Stefan Roese <sr@denx.de> | 2014-10-28 10:32:24 (GMT) |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2014-10-30 23:29:29 (GMT) |
commit | 934a529f94f653c869e750d8178b7ace62dadaf3 (patch) | |
tree | 6de7a00ba133412ca67651eb417e4da1e8770068 /tools/imximage.c | |
parent | e5f1a586a7767e9fdf6f81bd99a89f277ced4c70 (diff) | |
download | u-boot-fsl-qoriq-934a529f94f653c869e750d8178b7ace62dadaf3.tar.xz |
tools/kwbimage: Fix compilation warning
This patch fixes a compilation warning of kwbimage.c:
tools/kwbimage.c: In function ‘kwbimage_set_header’:
tools/kwbimage.c:784:8: warning: ‘headersz’ may be used uninitialized in this function [-Wmaybe-uninitialized]
memcpy(ptr, image, headersz);
^
Instead of using multiple if statements, use a switch statement with
a default entry. And return with error if an unsupported version
is configured in the cfg file.
Signed-off-by: Stefan Roese <sr@denx.de>
Acked-By: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'tools/imximage.c')
0 files changed, 0 insertions, 0 deletions