mmc: sdhci: Get rid of redundant BUG_ONs
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 29 Jun 2016 13:24:21 +0000 (16:24 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:37 +0000 (10:34 +0200)
commit64ed8dd46ba69a7f03f9019758ef35604f0cdb04
tree04aa7dfb1c18f3aa1493e6f725991f053598b31f
parent6bde868181dd98aef14ac3ba02a3216b40466867
mmc: sdhci: Get rid of redundant BUG_ONs

BUG is never the right thing for SDHCI to do. Get rid of BUG_ON in cases it
will oops anyway if the pointer is NULL, or if the condition is logically
impossible.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c