From patchwork Fri Feb 12 13:24:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 381829 Delivered-To: patches@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2928200jah; Fri, 12 Feb 2021 05:24:13 -0800 (PST) X-Received: by 2002:a19:ac0c:: with SMTP id g12mr1620555lfc.51.1613136253339; Fri, 12 Feb 2021 05:24:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613136253; cv=none; d=google.com; s=arc-20160816; b=gj60hOhdMzABoZACMAPjm2J092RxkwbmlrUm5XmnlFzVcXTguTaFybWPMqzpPoFTmZ fKgKxi3T1wq0HWDlCZFVIV3I2R7H+VYfhEGSshD1019NbdIQoyfoZAXfFJck/J3vBeI9 nXJjtC4I4Y2LSwVoGCaRn1lTt+nzcPCcyj9cVId3umnv9iIqkKJB+Hs91AbhLZnvVF8A di845Z1B8b1JGclF2YpSkSodOLn66Rz6ftOj8hnhfpITmOwQ+j3CGZPQ/3huYofAE41H fi/NFq0EkER+VBP0+p+5ZeWjnnoGQvE7yWis2Lh00VH8DRw53v7w6ggtbOhZYx7b7wT9 v2kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=D+0z0pzX8kl0CvjEUK/fo0H55/SuussxmmPAWLGiwDw=; b=rk6WXVVBxGMdTIrPl+fX6W0iRLZeTzeF5jvFmmmkY+xg1yQDvOQhhUV30CObJjvTmW bzwcIwY7rmqG77qUUb77UmN0wjJOjXjalcXkx33eMSiug1p0Pkh7NSJB5VSe+I1b6NsT M8kdqlUATRfeWmyablOmw17bDt5PfLZ80UclSMO8aRN9OXiHqkJhKWd/OnI0xLtvlUZR UUqYWifSbePpI5r+0tmKQq2w9RZ4VMfRaHhuZyECytgfibvk/yAAdXEyDM+G8I0HfiCh GMViDg4BRCicODPYx2Ii7BF9c5JkzZD9Cigbi91P9QJQEO5nF/PXa4ERC1fQCNOjgg4G OV7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r7WJqKh0; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id h4sor4258172ljg.49.2021.02.12.05.24.13 for (Google Transport Security); Fri, 12 Feb 2021 05:24:13 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r7WJqKh0; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=D+0z0pzX8kl0CvjEUK/fo0H55/SuussxmmPAWLGiwDw=; b=r7WJqKh0tyKnQCCU0xOleun34zA/iXM7vbphK2jvF9MSkqXMuv6UkoiU9MRBuvqYPL f4HH9WWsNdg180GfHFnYOiPrZc+L/6UWH1gZanEGKFKslh8BFsTZF8HbvWoVpcGUkdS7 WWA3ZCes9czVliI95qDo06DZxf4RpK/ZKwoayLEVyvYSnGW4IAsoB6SFcW44N7MnJGXn Jp26kswzj2KJEuVRWkzA8QorVa7JZz450IKrYYBpXqqG9aHMDzJgEhpnn99k5ChNSgbV awj5O6pD5Yr1G4lqRVufYZ4GHLQ/QISgoVObq5qvG1q4J63CYY1rrjahbCi+tXuPQR0V OIJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=D+0z0pzX8kl0CvjEUK/fo0H55/SuussxmmPAWLGiwDw=; b=rgrYvgt9HMRGN+f1BlaiektDRhOP/grulqw9gZBLfLYTjY9p9YOd/viEIqgil+5NFO Uo0/ggIINQwRO4Xtk8BIaRiTDw+5SRZ5pmyUxO2MExDH/U94kYN6f/ez22+NEf7Hosdc TXho7WQsm1Dk2t6IUXETG8r9wQw7H4auWaet0Zsg8LUBslPKJ8Deyt6CXND7gq5OZACr HbZTwBqKZcwrRu6jcOPOo2BCT1mL+t/qvVKuUfs92vHvdTt1UAJ0zZzyGmvgyjbtdybQ A0mUr9tyPCwWXGZA/xbJ7M3Q4OFuumRxCIQdlPX5WDwxvQPLhMo/KSZsk0PjNCYnCepj /uVw== X-Gm-Message-State: AOAM533P8qKztdy+ADC7t7kAMliVF55YxbChbqAcsqzHS9bDdhSv0XiV slojISWtwPy9UNuu4O/JLA1h67e6 X-Google-Smtp-Source: ABdhPJzzypHjHwgX4odQHgqFTCno50p2mx8gkBj0hQfs2OxAb9pVEZMch/6242DPdp7Ne0JCBXjHjQ== X-Received: by 2002:a05:651c:509:: with SMTP id o9mr1687221ljp.369.1613136252949; Fri, 12 Feb 2021 05:24:12 -0800 (PST) Return-Path: Received: from localhost.localdomain (h-98-128-181-28.NA.cust.bahnhof.se. [98.128.181.28]) by smtp.gmail.com with ESMTPSA id i18sm979205lfe.177.2021.02.12.05.24.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Feb 2021 05:24:11 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Jaehoon Chung Subject: [PATCH] mmc: dw_mmc: Drop redundant call to ->card_event callback Date: Fri, 12 Feb 2021 14:24:06 +0100 Message-Id: <20210212132406.237270-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 The ->card_event callback isn't being used by any of the dw_mmc variants. It's likely a leftover from an earlier change, hence let's just drop the redundant call to it. Signed-off-by: Ulf Hansson --- drivers/mmc/host/dw_mmc.c | 2 -- 1 file changed, 2 deletions(-) -- 2.25.1 Reviewed-by: Jaehoon Chung diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index a5244435556b..df327c89cec5 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -2606,8 +2606,6 @@ static void dw_mci_handle_cd(struct dw_mci *host) { struct dw_mci_slot *slot = host->slot; - if (slot->mmc->ops->card_event) - slot->mmc->ops->card_event(slot->mmc); mmc_detect_change(slot->mmc, msecs_to_jiffies(host->pdata->detect_delay_ms)); }