commit | b044b1bcc5de194688c33e5911b96ee93fd9ce48 | [log] [tgz] |
---|---|---|
author | Shawn Lin <shawn.lin@rock-chips.com> | Wed Jul 19 15:55:45 2017 +0800 |
committer | Ulf Hansson <ulf.hansson@linaro.org> | Wed Aug 30 14:01:33 2017 +0200 |
tree | f43863fd39fe976411b8a225d2dff863260f5b84 | |
parent | 1896f14006b28a7ed6881666d18a244827af0a5b [diff] |
mmc: core: always check the length of sglist with total data size All the check within mmc_mrq_prep seems to be all-or-none proposition, so it doesn't make sense to only check the length of sglist only under the CONFIG_MMC_DEBUG context. I'd prefer to always keep the check there unconditionally. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>