projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5017436
)
common/cmd_nand.c: Fix GCC 4.6 warning
author
Anatolij Gustschin
<agust@denx.de>
Sun, 20 May 2012 11:52:47 +0000
(11:52 +0000)
committer
Wolfgang Denk
<wd@denx.de>
Tue, 22 May 2012 08:15:42 +0000
(10:15 +0200)
cmd_nand.c: In function 'raw_access':
cmd_nand.c:397:9: warning: variable 'rwsize' set but not used
[-Wunused-but-set-variable]
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Scott Wood <scottwood@freescale.com>
common/cmd_nand.c
patch
|
blob
|
history
diff --git
a/common/cmd_nand.c
b/common/cmd_nand.c
index f060a317e07d94f821f4a60e5dbe2da2124c6523..fa442951d811a33dc1c5affd94d7a95975e08936 100644
(file)
--- a/
common/cmd_nand.c
+++ b/
common/cmd_nand.c
@@
-394,7
+394,6
@@
static int raw_access(nand_info_t *nand, ulong addr, loff_t off, ulong count,
int read)
{
int ret = 0;
- size_t rwsize;
while (count--) {
/* Raw access */
@@
-406,7
+405,6
@@
static int raw_access(nand_info_t *nand, ulong addr, loff_t off, ulong count,
.mode = MTD_OOB_RAW
};
- rwsize = nand->writesize + nand->oobsize;
if (read)
ret = nand->read_oob(nand, off, &ops);
else