From: ChanWoo Lee Date: Wed, 6 Jul 2022 00:48:40 +0000 (+0900) Subject: mmc: core: Replace with already defined values for readability X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=04ea9201020bcf7bb20d8788948c58257ac9f287;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mmc: core: Replace with already defined values for readability commit e427266460826bea21b70f9b2bb29decfb2c2620 upstream. SD_ROCR_S18A is already defined and is used to check the rocr value, so let's replace with already defined values for readability. Signed-off-by: ChanWoo Lee Reviewed-by: Linus Walleij Link: https://lore.kernel.org/r/20220706004840.24812-1-cw9316.lee@samsung.com Signed-off-by: Ulf Hansson Signed-off-by: Brian Norris Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c index 942dc358b9fd..62e60b5ef8c7 100644 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c @@ -793,7 +793,7 @@ try_again: * the CCS bit is set as well. We deliberately deviate from the spec in * regards to this, which allows UHS-I to be supported for SDSC cards. */ - if (!mmc_host_is_spi(host) && rocr && (*rocr & 0x01000000)) { + if (!mmc_host_is_spi(host) && rocr && (*rocr & SD_ROCR_S18A)) { err = mmc_set_uhs_voltage(host, pocr); if (err == -EAGAIN) { retries--;