Skip to content
Snippets Groups Projects
Commit 1a4664b5 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

cmd_flash.c: fix fix compile error for boards with DataFlash


Commit 5669ed45 ("cmd_flash.c: fix warning: unused variable
'addr_first'/'addr_last'") changed the #ifdef logic areound the
declaration of these variables and missed a combination of settings
of HAS_DATAFLASH with SYS_NO_FLASH; this patch fixes this.

Also spotted by Alessandro Rubini <rubini@gnudd.com>

Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
parent 341245a2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment