mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
Fix possible uninitialized variable compiler warning.
When CONFIG_OF_FLAG_TREE is set, the compiler complains that 'len' in do_bootm_linux() may be uninitialized. There is no possibility in the current code that len will get used uninitialized, but this fix follows the existing convention of setting both len and data to zero at the same time. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
parent
c3c3b089ad
commit
1eaf3a5ff4
1 changed files with 1 additions and 1 deletions
|
@ -625,7 +625,7 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
|
||||||
/* Look for a '-' which indicates to ignore the ramdisk argument */
|
/* Look for a '-' which indicates to ignore the ramdisk argument */
|
||||||
if (argc >= 3 && strcmp(argv[2], "-") == 0) {
|
if (argc >= 3 && strcmp(argv[2], "-") == 0) {
|
||||||
debug ("Skipping initrd\n");
|
debug ("Skipping initrd\n");
|
||||||
data = 0;
|
len = data = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue