]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mmc: sdhci-uhs2: Remove unnecessary NULL check
authorBen Chuang <ben.chuang@genesyslogic.com.tw>
Wed, 30 Oct 2024 01:53:26 +0000 (09:53 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Oct 2024 11:02:47 +0000 (12:02 +0100)
commit54ef4b393e0396a0c82bebb733e09c184c7ac943
treee6829d96d420183b1b183082a464a81947dc2da1
parent88df25ad0c5afbafe42fab023fc9b0e688f4b4e1
mmc: sdhci-uhs2: Remove unnecessary NULL check

The host->ops pointer can't be NULL in sdhci_uhs2_do_detect_init(). Let's
drop the redundant check.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202410271835.tqz9s9JV-lkp@intel.com/
Signed-off-by: Ben Chuang <ben.chuang@genesyslogic.com.tw>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Message-ID: <20241030015326.2289070-1-benchuanggli@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-uhs2.c