diff options
| author | Heinrich Schuchardt <[email protected]> | 2020-12-27 11:48:49 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-01-18 15:23:06 -0500 |
| commit | 80b1ef942d96a6025c96305284f83bc0a8aa194e (patch) | |
| tree | a8b8309404b2a5232d6a4da5156c6a5c9de815f8 /drivers | |
| parent | f11b38e3aeb77b12f14502ff8eafd21737228c30 (diff) | |
drivers: qe: avoid double free()
Avoid calling free(addr) twice if the device for ucode is not found.
The problem was indicated by cppcheck.
Signed-off-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/qe/qe.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c index 1a829b5a4cf..259e4e3e678 100644 --- a/drivers/qe/qe.c +++ b/drivers/qe/qe.c @@ -288,7 +288,6 @@ void u_qe_init(void) struct mmc *mmc = find_mmc_device(CONFIG_SYS_MMC_ENV_DEV); if (!mmc) { - free(addr); printf("\nMMC cannot find device for ucode\n"); } else { printf("\nMMC read: dev # %u, block # %u, count %u ...\n", |
