diff options
author | Wolfgang Denk <wd@denx.de> | 2011-11-29 22:17:44 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-12-02 00:10:02 +0100 |
commit | bba8f3929e1ae3c09274b8dcdf0ad7b099494f71 (patch) | |
tree | 733e8e01e6c4ae393fd9192488c12dd530f23ddd /board/prodrive/alpr/nand.c | |
parent | 4ebbba442587cb03590c0747fd1fea16a158f15c (diff) |
alpr board: Fix GCC 4.6 build warnings
Fix:
fpga.c: In function 'fpga_pre_fn':
fpga.c:88:16: warning: variable 'reg' set but not used
[-Wunused-but-set-variable]
nand.c: In function 'alpr_nand_dev_ready':
nand.c:125:18: warning: variable 'val' set but not used
[-Wunused-but-set-variable]
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
Acked-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board/prodrive/alpr/nand.c')
-rw-r--r-- | board/prodrive/alpr/nand.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/board/prodrive/alpr/nand.c b/board/prodrive/alpr/nand.c index b18c96b297..d35cfed3ce 100644 --- a/board/prodrive/alpr/nand.c +++ b/board/prodrive/alpr/nand.c @@ -122,12 +122,10 @@ static int alpr_nand_verify_buf(struct mtd_info *mtd, const u_char *buf, int len static int alpr_nand_dev_ready(struct mtd_info *mtd) { - volatile u_char val; - /* * Blocking read to wait for NAND to be ready */ - val = readb(&(alpr_ndfc->addr_wait)); + (void)readb(&(alpr_ndfc->addr_wait)); /* * Return always true |