]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: Print send_cmd response only when return value is zero
authorBin Meng <bmeng.cn@gmail.com>
Fri, 18 Mar 2016 04:53:14 +0000 (21:53 -0700)
committerTom Rini <trini@konsulko.com>
Sun, 27 Mar 2016 13:12:24 +0000 (09:12 -0400)
commit7863ce589105bdcae9c5c45a33458f0d40536b01
tree2d7346b851a6832cb038eb4f04d867ead1e6286d
parent53e8e40b4743fffc8d4042cba898107747ed04dd
mmc: Print send_cmd response only when return value is zero

send_cmd response is valid only when no error happened. If an error
occured, let mmc_send_cmd() print the return value to aid debugging.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/mmc/mmc.c