mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
board/cogent/flash.c: Fix GCC 4.6 buiild warning
Fix: flash.c: In function 'flash_init': flash.c:295:16: warning: variable 'fip' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Murray Jensen <Murray.Jensen@csiro.au>
This commit is contained in:
parent
69545df0e6
commit
31a167cfa8
1 changed files with 2 additions and 1 deletions
|
@ -23,6 +23,7 @@
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <board/cogent/flash.h>
|
#include <board/cogent/flash.h>
|
||||||
|
#include <linux/compiler.h>
|
||||||
|
|
||||||
flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
|
flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
|
||||||
|
|
||||||
|
@ -292,7 +293,7 @@ flash_init(void)
|
||||||
{
|
{
|
||||||
unsigned long total;
|
unsigned long total;
|
||||||
int i;
|
int i;
|
||||||
flash_info_t *fip;
|
__maybe_unused flash_info_t *fip;
|
||||||
|
|
||||||
/* Init: no FLASHes known */
|
/* Init: no FLASHes known */
|
||||||
for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
|
for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue