]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6274e454b15ea12ce5a54efee122c0422db06755
tree04aa7dfb1c18f3aa1493e6f725991f053598b31f
parent363d607e3eff5bd90aba23b1eb1ac62f4bffe496
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