mmc: debugfs: remove BUG_ON from mmc_ext_csd_open
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 2 Nov 2016 07:24:39 +0000 (15:24 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 5 Dec 2016 09:31:09 +0000 (10:31 +0100)
commita48ee3e65a9e7395e8bab86728fcdc81c30a89ca
tree70df777c1ef3238eb9b96f88c31448644b0f4c65
parent5df0e8231f9518ee5ca3f58a0777556dd03addd6
mmc: debugfs: remove BUG_ON from mmc_ext_csd_open

Return error value for file_operations callback instead
of triggering BUG_ON which is meaningless. Personally I
don't believe n != EXT_CSD_STR_LEN could happen. Anyway,
propagate the error to the caller.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/debugfs.c