Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2601475imu; Mon, 19 Nov 2018 03:15:01 -0800 (PST) X-Google-Smtp-Source: AJdET5fgDbnwhMwZfR19y60ubi61vWfRsSRCiDVB1Umea+IDHPXgxRPCIcIfSTnusdnNQXXmxF28 X-Received: by 2002:a17:902:9a91:: with SMTP id w17-v6mr21130952plp.274.1542626101429; Mon, 19 Nov 2018 03:15:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542626101; cv=none; d=google.com; s=arc-20160816; b=HFfnWvqlRhuZICwvbfxfKzSVJPpFr8ekZh5KXvgcBnF0kKFH1d3iJUB5bculOAabCL zJWp8rUXrt7wyzchR8a72XucuJp8PRCJvFaYWx17ySNyHvIkirLe6z1ZIzLKQoydkukc B7S0AjiTl8zYqG1Db5XFp8n6XyJvjhs0Ee/iBm5MSzU/JpiJ4W2gSiBYYzONVcNVoWjk L79kHNhHZdo2RskOtSeCK4ocoRYLTKb6eXMlOZvpl+81u5CNhkxvDdbcsDfKirfUFVk/ fyBPLpCAFEeWyjHSmbvoDmvSINrS0UaW40p7oHySXOeGA+qhOzB3NuPTUtepVSLkmL+R Z4RQ== 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=N23eZaTZKBHWYOexBlL5MLit9B9Scy+KPqBNLPPRJ40=; b=Un9rUn7Soj6cE4XR6pM9HmChpipjcmJ3zfPAR6sy+TGL3xGhV6s/VN295WwUErkKPM rnGSoDlKlW/mkBelSgfBh+2HHApgCFAyYqxV2kzkhJBRgtnLl2Z2KSl9MtPalCt+1fdF uUx5Roa9AC3AfWsR3NH8/1EaHAfYutNGuOc9pQyeLUcLr02ef9fuoLATrtj1Ehkf9tvo YjHV76MECOdoQ6lxggi38qodvKttiHxZR6VCp95abkq3I3cQt5lRY0HLzAzcUPQ/iIv5 OFmlp9/2i57whUnGnJYnmisiLosA25zz9N9zdTwX5YzIsTJP9dEOuZ209SEcwCYfrsLQ o5EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Xumbmj5H; 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 y5si3562375pgs.588.2018.11.19.03.14.47; Mon, 19 Nov 2018 03:15:01 -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=Xumbmj5H; 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 S1728662AbeKSVh1 (ORCPT + 99 others); Mon, 19 Nov 2018 16:37:27 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:51298 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728557AbeKSVh0 (ORCPT ); Mon, 19 Nov 2018 16:37:26 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id wAJBE5vm080139; Mon, 19 Nov 2018 05:14:05 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1542626045; bh=N23eZaTZKBHWYOexBlL5MLit9B9Scy+KPqBNLPPRJ40=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Xumbmj5HRt0fo0YIJk6NmHOTEI3O3NA3USOzygAZpxVUS9WMrtsa6h+hLjQ2rYtHJ 9LFeos6pZCE2EeaZ1kymAwJO8Ngbh4CpqaHAwcXBw3GN1qSAwSfne2Hf/m6o2UYH/6 3bHjuaFL6/9Re4BlDqUKCnYJ/xTzlStJHmaXTzv8= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wAJBE5Zj021765 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 19 Nov 2018 05:14:05 -0600 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Mon, 19 Nov 2018 05:14:04 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Mon, 19 Nov 2018 05:14:04 -0600 Received: from a0230074-OptiPlex-7010.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id wAJBDr14029910; Mon, 19 Nov 2018 05:14:03 -0600 From: Faiz Abbas To: , CC: , , , Subject: [PATCH 4/4] mmc: sdhci-omap: Remove redundant structure assignments Date: Mon, 19 Nov 2018 16:46:18 +0530 Message-ID: <20181119111618.2745-5-faiz_abbas@ti.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181119111618.2745-1-faiz_abbas@ti.com> References: <20181119111618.2745-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. 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 bf268b38ddc8..b3cb39d0db6f 100644 --- a/drivers/mmc/host/sdhci-omap.c +++ b/drivers/mmc/host/sdhci-omap.c @@ -295,10 +295,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