summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorShawn Lin <shawn.lin@rock-chips.com>2016-11-02 08:26:49 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2016-12-05 10:31:13 +0100
commit8508cb9868015cad4f10d818f32f4030c75e88e0 (patch)
tree5b0b12abb111501d0f66a782dfa67a92863b3e01 /drivers/mmc
parentmmc: sdio_uart: remove meaningless BUG_ON (diff)
downloadlinux-8508cb9868015cad4f10d818f32f4030c75e88e0.tar.xz
linux-8508cb9868015cad4f10d818f32f4030c75e88e0.zip
mmc: queue: remove BUG_ON for bounce_sg
bounce_sg for mqrq_cur and mqrq_pre are proper allocated when initializing the queue and will not be freed before explicitly cleaning the queue. So from the code itself it should be quite confident to remove this check. If that BUG_ON take effects, it is mostly likely the memory is randomly oopsing. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/card/queue.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c
index 32ab5a1947b0..cf29809f69e4 100644
--- a/drivers/mmc/card/queue.c
+++ b/drivers/mmc/card/queue.c
@@ -445,8 +445,6 @@ unsigned int mmc_queue_map_sg(struct mmc_queue *mq, struct mmc_queue_req *mqrq)
if (!mqrq->bounce_buf)
return blk_rq_map_sg(mq->queue, mqrq->req, mqrq->sg);
- BUG_ON(!mqrq->bounce_sg);
-
sg_len = blk_rq_map_sg(mq->queue, mqrq->req, mqrq->bounce_sg);
mqrq->bounce_sg_len = sg_len;