Skip to content
Snippets Groups Projects
Commit ba6a902d authored by Chris Ball's avatar Chris Ball
Browse files

mmc: dw_mmc: Remove set-but-unused variable.


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 [-Wunused-but-set-variable]

Signed-off-by: default avatarChris Ball <cjb@laptop.org>
Acked-by: default avatarWill Newton <will.newton@imgtec.com>
parent 7e29c306
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment