mmc: remove BUG() for MMC_BLK_NEW_REQUEST error handling.
Removed BUG() from mmc_blk_issue_rw_rq() because the execution flow never
reaches there and compiler warning resolved by adding 'default:' clause to
the switch(status).
Change-Id: I5a806a0b3b471085998457fdc8da8dc467f6452d
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index e25e297..16815ca 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -1990,8 +1990,6 @@
mmc_queue_bounce_post(mq_rq);
switch (status) {
- case MMC_BLK_NEW_REQUEST:
- BUG(); /* should never get here */
case MMC_BLK_SUCCESS:
case MMC_BLK_PARTIAL:
/*
@@ -2064,6 +2062,11 @@
break;
case MMC_BLK_NOMEDIUM:
goto cmd_abort;
+ default:
+ pr_err("%s:%s: Unhandled return value (%d)",
+ req->rq_disk->disk_name,
+ __func__, status);
+ goto cmd_abort;
}
if (ret) {