common/cmd_nand.c: Fix GCC 4.6 warning
PATCH 1/1 common/cmd_nand.c: Fix GCC 4.6 warning
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 <[email protected]>
Cc Scott Wood <[email protected]>
--- common/cmd_nand.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
common/cmd_nand.c +0 -2
@@ -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
Signature · 1 line
1.7.1
Wolfgang Denk
AppliedPATCH 1/1 common/cmd_nand.c: Fix GCC 4.6 warning
Dear Anatolij Gustschin,
Quoted 9 lines · In message <[email protected]> you wrote:
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 <[email protected]>Cc Scott Wood <[email protected]>--- common/cmd_nand.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Wait! You have not been prepared! -- Mr. Atoz, "Tomorrow is Yesterday", stardate 3113.2