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)
commit3e4b0d8bdc6ddd68fdc1f4592822af2ae5cc2859
tree2a6b44f788d9bcaa235a11db0332e9e263c049cc
parent1fb5f68addde6d8b79dd7d747814aa1770e6cf21
mmc: dw_mmc: Avoid adding the number of transmitted bytes twice

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