From: Shawn Lin Date: Fri, 27 May 2016 06:36:40 +0000 (+0800) Subject: mmc: dw_mmc: remove redundant of set_bit and clear_bit X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c0834a585f18d2de2dfbce600334b391c870a62d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mmc: dw_mmc: remove redundant of set_bit and clear_bit dw_mci_get_cd have already dealt with these for both of internal card-detect and gpio card-detect. Signed-off-by: Shawn Lin Signed-off-by: Jaehoon Chung Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 801285801664..8a2dd0484c67 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -2615,10 +2615,7 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id) mmc->max_seg_size = mmc->max_req_size; } - if (dw_mci_get_cd(mmc)) - set_bit(DW_MMC_CARD_PRESENT, &slot->flags); - else - clear_bit(DW_MMC_CARD_PRESENT, &slot->flags); + dw_mci_get_cd(mmc); ret = mmc_add_host(mmc); if (ret)