davinci, mmc: fix gcc 4.6 build warnings
PATCH 1/1 davinci, mmc: fix gcc 4.6 build warnings
Fix:davinci_mmc.c: In function 'dmmc_wait_fifo_status':
davinci_mmc.c:72:7: warning: variable 'mmcstatus1' set but not used [-Wunused-but-set-variable] davinci_mmc.c: In function 'dmmc_busy_wait':
davinci_mmc.c:89:7: warning: variable 'mmcstatus1' set but not used [-Wunused-but-set-variable]
Delete the unused variable.
--- drivers/mmc/davinci_mmc.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
drivers/mmc/davinci_mmc.c +3 -4
@@ -69,8 +69,8 @@ static void dmmc_set_clock(struct mmc *mmc, uint clock)static int dmmc_wait_fifo_status (volatile struct davinci_mmc_regs *regs,uint status) { -uint mmcstatus1, wdog =WATCHDOG_COUNT ; - mmcstatus1 =get_val (®s->mmcst1); +uint wdog =WATCHDOG_COUNT ; +while (--wdog && ((get_val (®s->mmcst1) & status) != status))udelay (10 );
@@ -86,9 +86,8 @@ dmmc_wait_fifo_status(volatile struct davinci_mmc_regs *regs, uint status)/* Busy bit wait loop for MMCST1 */ static int dmmc_busy_wait (volatile struct davinci_mmc_regs *regs) { -uint mmcstatus1, wdog =WATCHDOG_COUNT ; +uint wdog =WATCHDOG_COUNT ; - mmcstatus1 =get_val (®s->mmcst1);while (--wdog && (get_val (®s->mmcst1) &MMCST1_BUSY ))udelay (10 );
Signature · 1 line
1.7.6.4
Wolfgang Denk
AppliedPATCH 1/1 davinci, mmc: fix gcc 4.6 build warnings
Dear Heiko Schocher,
Quoted 6 lines · In message <[email protected]> you wrote:
Fix:
davinci_mmc.c: In function 'dmmc_wait_fifo_status':
davinci_mmc.c:72:7: warning: variable 'mmcstatus1' set but not used [-Wunused-but-set-variable]davinci_mmc.c: In function 'dmmc_busy_wait':
davinci_mmc.c:89:7: warning: variable 'mmcstatus1' set but not used [-Wunused-but-set-variable]
Quoted 8 lines
Delete the unused variable.
Signed-off-by Heiko Schocher <[email protected]>Cc Sandeep Paulraj <[email protected]>Cc Albert ARIBAUD <[email protected]>--- drivers/mmc/davinci_mmc.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
Applied, thanks.
Sandeep, Albert: hope this is OK with you.
Best regards,
Wolfgang Denk
Signature · 7 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
There are three ways to get something done:
(1) Do it yourself.
(2) Hire someone to do it for you.
(3) Forbid your kids to do it.