Re: [PATCH] mmc: dw_mmc: Remove set-but-unused variable.

2011-03-01 Thread Will Newton
On Mon, Feb 28, 2011 at 9:55 PM, Chris Ball c...@laptop.org wrote: count is only ever used by assigning to old_len if count == 0, and then old_len isn't ever used at all.  So, both are redundant.  Fixes: drivers/mmc/host/dw_mmc.c: In function ‘dw_mci_read_data_pio’:

Re: [PATCH] mmc: dw_mmc: Remove set-but-unused variable.

2011-03-01 Thread Jaehoon Chung
Acked-by: Jaehoon Chung jh80.ch...@samsung.com Will Newton wrote: On Mon, Feb 28, 2011 at 9:55 PM, Chris Ball c...@laptop.org wrote: count is only ever used by assigning to old_len if count == 0, and then old_len isn't ever used at all. So, both are redundant. Fixes:

[PATCH] mmc: dw_mmc: Remove set-but-unused variable.

2011-02-28 Thread Chris Ball
count is only ever used by assigning to old_len if count == 0, and then old_len isn't ever used at all. So, both are redundant. Fixes: drivers/mmc/host/dw_mmc.c: In function ‘dw_mci_read_data_pio’: drivers/mmc/host/dw_mmc.c:1034:32: warning: variable ‘old_len’ set but not used