Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1883216imu; Wed, 21 Nov 2018 03:32:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/VvpMa7eRR6Z67SZck8kLVS4JZigJOlB2JVS4RNF+Su1fOXAF3P0c7IIvnuJDvVyLlXGGCA X-Received: by 2002:a17:902:b48b:: with SMTP id y11-v6mr6351866plr.135.1542799926243; Wed, 21 Nov 2018 03:32:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542799926; cv=none; d=google.com; s=arc-20160816; b=ZBQaIlzyPzaJdsOK8AqF+9SluNIXW4a/XeRIdu3gfo79Z+QFiPlTJcynNLCVyN/xK+ wtHltvkIi1IPgwT71s6pPtIPkuytC0yAwdTMu3NZIhp6J4Le0vuTH+OiCIrOTzScvXUQ vOd5/BEkm7iCakTx0cQNC844oIIch3O+J6dnDTXLGQggX3pAAQVhRMza+g1/XouS9mCk 93FDo9BzGkuj0vRGMDuF4+StGJ5LzE11ZDKpEQgj/KuwdjmnL0aSUjU357ni3LgKtpzD V5afHdHhSSzbsB2Szk7x+R4ERMiVAI1Ayu/3NKk2ejSxyx8emECKxptQmvmDRaZ/5I07 FmXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=v/AkkzgRuzm0g5oVeWp3fvxZJE3jXzR8GJH7QUxOv94=; b=fIe644lcGnyOxRCghVf7EZ7T9Bq1XJJ05BU+VrFsGXCoWQC7F48T+dQcPAaPn+QylC nnIAq+LnFWwKE20Ai4fVhkmC1cdtKWbRNDNjL1dxZFZ8Nivs/UxgDTzGd1XmVF2qUCmH e4pBOzd+SGl6kBXrvu0Ym7S0X2L36tY2ermK+07fRHJpU7RYsT1bRAAsBxbE7/WIq1vD sxrxqIf5P5pPl40JhZIRxuMmXRmSEQtHsCg6rZPic1jJEoZEgb9a2FAcRGRDrDUPNKT/ eAVVhRsJ+xI0WcWkQk8JoL+xorY4NsTx6yySn1/5zemkxnXLk8g5jS95/AKTIQujvoge XMeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=WeY98qdf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g22si37271114pfj.222.2018.11.21.03.31.51; Wed, 21 Nov 2018 03:32:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=WeY98qdf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729896AbeKUVFS (ORCPT + 99 others); Wed, 21 Nov 2018 16:05:18 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:54824 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729716AbeKUVFQ (ORCPT ); Wed, 21 Nov 2018 16:05:16 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id wALAVNid053819; Wed, 21 Nov 2018 04:31:23 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1542796283; bh=v/AkkzgRuzm0g5oVeWp3fvxZJE3jXzR8GJH7QUxOv94=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=WeY98qdfDGB1V1rjzZC5ZYI+CjbnTPnqZb5f/LtAz+SOgZCS+oULvlZZJNe0NYRzT cfX3zbkrwIEbQxTBJSNAe0Ty3yJM69i/sHPF1vr5aHVZB6/0h/t1YkaNOZfs9UrfnQ 9P4b2P30LUGpS2u0/2FMqKwZFvVEDieSaeYGan5Q= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wALAVNQo029062 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 21 Nov 2018 04:31:23 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Wed, 21 Nov 2018 04:31:22 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Wed, 21 Nov 2018 04:31:23 -0600 Received: from a0230074-OptiPlex-7010.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id wALAVECf025951; Wed, 21 Nov 2018 04:31:21 -0600 From: Faiz Abbas To: , CC: , , , Subject: [PATCH v2 3/3] mmc: sdhci-omap: Remove redundant structure assignments Date: Wed, 21 Nov 2018 16:03:57 +0530 Message-ID: <20181121103357.3448-4-faiz_abbas@ti.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181121103357.3448-1-faiz_abbas@ti.com> References: <20181121103357.3448-1-faiz_abbas@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The sdhci_execute_tuning() function has assignment of private pointers multiple times. Remove the redundant assignment. Acked-by: Kishon Vijay Abraham I Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci-omap.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c index 4fad47926743..f588ab679cb0 100644 --- a/drivers/mmc/host/sdhci-omap.c +++ b/drivers/mmc/host/sdhci-omap.c @@ -296,10 +296,6 @@ static int sdhci_omap_execute_tuning(struct mmc_host *mmc, u32 opcode) int ret = 0; u32 reg; - pltfm_host = sdhci_priv(host); - omap_host = sdhci_pltfm_priv(pltfm_host); - dev = omap_host->dev; - /* clock tuning is not needed for upto 52MHz */ if (ios->clock <= 52000000) return 0; -- 2.19.1