Skip to content
Snippets Groups Projects
Commit e35c05ba authored by Michal Simek's avatar Michal Simek
Browse files

microblaze: board: Remove compilation warning


Variable is used when CONFIG_SYS_FLASH_CHECKSUM is used.

Warning log:
board.c: In function 'board_init':
board.c:101: warning: unused variable 's'

Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
Acked-by: default avatarStephan Linz <linz@li-pro.net>
parent b710d9d6
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@
#include <stdio_dev.h>
#include <serial.h>
#include <net.h>
#include <linux/compiler.h>
#include <asm/processor.h>
#include <asm/microblaze_intc.h>
#include <fdtdec.h>
......@@ -91,7 +92,7 @@ void board_init (void)
gd = (gd_t *) (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET);
bd = (bd_t *) (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET \
- GENERATED_BD_INFO_SIZE);
char *s;
__maybe_unused char *s;
#if defined(CONFIG_CMD_FLASH)
ulong flash_size = 0;
#endif
......
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