From patchwork Thu Jun 8 13:27:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 103390 Delivered-To: patches@linaro.org Received: by 10.140.91.77 with SMTP id y71csp2439540qgd; Thu, 8 Jun 2017 06:27:59 -0700 (PDT) X-Received: by 10.25.166.15 with SMTP id p15mr3331709lfe.43.1496928478935; Thu, 08 Jun 2017 06:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496928478; cv=none; d=google.com; s=arc-20160816; b=idUB+EviC4MDKzIIHqh+nqCtuKEoYE8q+KNwpGO32Aj1c8f5Z83xzByXX7Mh1J6bCt B+INg3POSQJRfJRwNQ22xOylm824npms7Va8gS0WQuMzu6WdD2C8bD9KRD/EFQNmCey0 nWHaqwo94NjXnjgajvUwZAWTVXL9xxJJEgKWYkSr5iHpgOdEDDlHDr6ltqN6dHp8c4PJ rqppaY+XKOC+P4UntlLOHXR8xNI7bjqU/7u/+/CiXlJA/IAPhxHiCdjZFhmLIj24wtoS lppxxkS/iZbSSeUJZYlQ52UhzBM4X7A7JJ4Lgqis5do+yd/1MMNaQuFF9anz1MvEY1vD A7jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Q7IWASeDRnuMzLozuYCoVKUz0uR497CzWcm5E9AaMp0=; b=NYGRLpy1/lE6dnJ5kBFCUyJn9txf6Y/KONINRUWM7lIHeuY0S/gMYfoRRMcXDm4xlx W13QuA7u7jOh8jtkYvO1l3FRdur63QUBqS85IfEUl0K9TAGpZ5KSx/tYDfgvpt912/zB GT5v6diLWxgoV4PjaQvEf1OztPGg/BpSCvYDT4mRVTNCi3q7f7WcZkHo7u+x642JcDS3 CHZl0wlx0PmtOCyCxmlKkTKqbcToT8k2FNt0GOXtZrdVlWUCVGug5Dp3UDvvdk7WPYIb VnbpX47ZTg6PwkHehGs6+iy1gwItIWA41ORRzJxE2UX3h+5NHXTyyJLvGllWDSMIDfgN DBrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::233 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-lf0-x233.google.com (mail-lf0-x233.google.com. [2a00:1450:4010:c07::233]) by mx.google.com with ESMTPS id w19si2569401ljd.168.2017.06.08.06.27.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jun 2017 06:27:58 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::233 as permitted sender) client-ip=2a00:1450:4010:c07::233; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::233 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x233.google.com with SMTP id v20so18056985lfa.1 for ; Thu, 08 Jun 2017 06:27:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Q7IWASeDRnuMzLozuYCoVKUz0uR497CzWcm5E9AaMp0=; b=WtXiKZBiatkcyCeSnqPglvNCiiBgPG2lls12yoGjBR2WiLr6/G0kUSOO/1/dmI9pKv JNH6zxtZk935dWiX6RTrsAGXChbmYCF8fcYFNULFhDk+z9qKISbrg7ZiOKD11nNlLbSU /Vb8isU40m3cz/8sDKsFlGjc/HU8rDKo2m9Uw= 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:in-reply-to :references; bh=Q7IWASeDRnuMzLozuYCoVKUz0uR497CzWcm5E9AaMp0=; b=L0Oc24GQNZZyuuRY1XY2Cvn97I8u8Dyy4bM5dkcoGJRnWBPRMP29t4fKe7ELO9Xvw+ +WvTu85N971IPT65FLEo6R0lmI8V4QGt5tdQkDuzxqW2/AK9jHtLGDgghQOW1nL0BQ9C CJzlJr8sCvNQBGXiGm7NE/FlOEnoQkAC7MqMokV+vCAnigk0vdupGtk5pTaBuhJ4ALXO GsA8WNN1anMUR26lk4poYc2jc9G4QNw7NuQF1K8v7OcMc/KqDcCraFT54hFDTbkQXHbS 0R+Z/fMvCCZiHLKuAvCOKUOffZdA8CJlWwLoNVn1WlbF1/CuhWr3b79IWggLa73E8yE5 MxlQ== X-Gm-Message-State: AODbwcAv770lmnOIqDGBGa81r1NLOf50dnGVGjAJ14eVLtTrEgFLTADG hzo7XAiRzD7oy+7ZaOQ= X-Received: by 10.46.69.198 with SMTP id s189mr12122189lja.13.1496928478631; Thu, 08 Jun 2017 06:27:58 -0700 (PDT) Return-Path: Received: from uffe-XPS-13-9360.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id i8sm1025178ljb.55.2017.06.08.06.27.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jun 2017 06:27:57 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Jaehoon Chung , Adrian Hunter , Linus Walleij Subject: [PATCH 6/9] mmc: core: Remove redundant code in mmc_send_cid() Date: Thu, 8 Jun 2017 15:27:42 +0200 Message-Id: <1496928465-25004-7-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496928465-25004-1-git-send-email-ulf.hansson@linaro.org> References: <1496928465-25004-1-git-send-email-ulf.hansson@linaro.org> The mmc_send_cid() is never called using non SPI mode. Thus, let's remove the redundant code dealing with this. Signed-off-by: Ulf Hansson --- drivers/mmc/core/mmc_ops.c | 7 ------- 1 file changed, 7 deletions(-) -- 2.7.4 Reviewed-by: Linus Walleij diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c index f79d680..9994840 100644 --- a/drivers/mmc/core/mmc_ops.c +++ b/drivers/mmc/core/mmc_ops.c @@ -339,13 +339,6 @@ int mmc_send_cid(struct mmc_host *host, u32 *cid) int ret, i; __be32 *cid_tmp; - if (!mmc_host_is_spi(host)) { - if (!host->card) - return -EINVAL; - return mmc_send_cxd_native(host, host->card->rca << 16, - cid, MMC_SEND_CID); - } - cid_tmp = kzalloc(16, GFP_KERNEL); if (!cid_tmp) return -ENOMEM;