mmc: dw_mmc: Avoid adding the number of transmitted bytes twice
authorMarkos Chandras <markos.chandras@imgtec.com>
Fri, 22 Mar 2013 16:50:05 +0000 (12:50 -0400)
committerChris Ball <cjb@laptop.org>
Fri, 22 Mar 2013 16:50:05 +0000 (12:50 -0400)
Previously, it was possible to add either 0 bytes or add nbytes
twice if we broke out of the outer loop and then carry on to the
"done" label. This is now fixed by adding the transferred bytes
right after the pull/pop operation

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c

Simple merge