Re: [U-Boot] [PATCH 31/56] board/eltec/mhpc/flash.c: Fix GCC 4.6 build warning

2011-11-07 Thread Wolfgang Denk
Dear Wolfgang Denk,

In message <1320458160-23136-32-git-send-email...@denx.de> you wrote:
> Fix:
> flash.c: In function 'write_buff':
> flash.c:314:6: warning: variable 'count' set but not used
> [-Wunused-but-set-variable]
> 
> Signed-off-by: Wolfgang Denk 
> Cc: Frank Gottschling 
> ---
>  board/eltec/mhpc/flash.c |7 +++
>  1 files changed, 3 insertions(+), 4 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
"And they told us, what they wanted... Was a sound  that  could  kill
some-one, from a distance."   - Kate Bush
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 31/56] board/eltec/mhpc/flash.c: Fix GCC 4.6 build warning

2011-11-04 Thread Wolfgang Denk
Fix:
flash.c: In function 'write_buff':
flash.c:314:6: warning: variable 'count' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk 
Cc: Frank Gottschling 
---
 board/eltec/mhpc/flash.c |7 +++
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/board/eltec/mhpc/flash.c b/board/eltec/mhpc/flash.c
index 2fbdb27..8831328 100644
--- a/board/eltec/mhpc/flash.c
+++ b/board/eltec/mhpc/flash.c
@@ -311,7 +311,7 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, 
ulong cnt)
 {
ulong cp, wp;
FPW data;
-   int count, i, l, rc, port_width;
+   int i, l, rc, port_width;
 
if (info->flash_id == FLASH_UNKNOWN) {
return 4;
@@ -330,9 +330,9 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, 
ulong cnt)
 */
if ((l = addr - wp) != 0) {
data = 0;
-   for (i=0, cp=wp; i0; ++i) {
data = (data << 8) | *src++;
--cnt;
@@ -351,7 +351,6 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, 
ulong cnt)
/*
 * handle word aligned part
 */
-   count = 0;
while (cnt >= port_width) {
data = 0;
for (i=0; ihttp://lists.denx.de/mailman/listinfo/u-boot