Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1286742ybg; Wed, 23 Oct 2019 13:19:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOPgpr8f8up5Y+cPiFiRjbFKbzR9+UzuonYDZc8AlkehEsg5I6A0T2DL8wmVUPL1Sjk4pH X-Received: by 2002:a17:906:6087:: with SMTP id t7mr34954348ejj.58.1571861971730; Wed, 23 Oct 2019 13:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571861971; cv=none; d=google.com; s=arc-20160816; b=leTJNTfdZ8eRdCaLxjF4nVlh3Xrz/F/eoSwGeFX+/QYN4k57z+bTcaJHeJv9hheh1d Y+Ov98dMU6BBCPTy20HQMy1YhXVnJu4IFp96o9q3UWbYEd0XGj00odJ4ne6ON4ekoLDu OvCDtgcuQbgHkAx34/OgcbjQnQ0R5eUXPXXCMmMFYY4GDeQbcua1bAxhZ+pLSI2zeCWV IMvlj3a3nlWEws9vMVI73Uf4G4fEijXDSzvsf83DSL3WDDHMj+gvTVz9uuLIk6pj2y90 gjW+4GPtm80WRB770+sHJco0aW0YebKflsSS5/c/UKnrkXRuzeH2ZpgbmQSh232LaVY3 f54g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=f6yiy9Kd6WNJ6XsJGSDpPU63ucRoP0BU+XfGM5opQUk=; b=S4vUhPK+0FiG7yyjvwmI5OUkx2wADSxcRIpi25WxQgwsuQyCuUO+f/cVE2c1sPKu+U tRkuhreX9fxnIf/IH3elGD2cmei1Ty6SZ1umLruJ1Zs3N4v6wPbJr/n6+6vovHAdA3Ic fbLlJ90myflO2rHgeg8cNy3+P8WjjMxyJ7bW8tojw81JyyK7gUeJdGrjyDRnRUp3fjuT K292BYkctOO+Z7aVYW2OudqDj9vcrKcdJ7rKMdoGe60RbE9fqDYSIBUhUcKVhE/D+h38 /CdTML75iJ++XDmzJ3LK1AhZE9fS3v+UsTgSS1X/gYhLGCQW0VPR8p9HMIPAb77xmcb0 0tmQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p29si2470741eda.104.2019.10.23.13.19.07; Wed, 23 Oct 2019 13:19:31 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406178AbfJWNwL (ORCPT + 99 others); Wed, 23 Oct 2019 09:52:11 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:53412 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2404484AbfJWNwL (ORCPT ); Wed, 23 Oct 2019 09:52:11 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 741B29750C5E0B14BABF; Wed, 23 Oct 2019 21:52:09 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Wed, 23 Oct 2019 21:51:59 +0800 From: YueHaibing To: , CC: , YueHaibing Subject: [PATCH -next] memory: emif: remove set but not used variables 'cs1_used' and 'custom_configs' Date: Wed, 23 Oct 2019 21:51:49 +0800 Message-ID: <20191023135149.34704-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org drivers/memory/emif.c:1616:9: warning: variable cs1_used set but not used [-Wunused-but-set-variable] drivers/memory/emif.c:1624:36: warning: variable custom_configs set but not used [-Wunused-but-set-variable] They are never used since introduction. Signed-off-by: YueHaibing --- drivers/memory/emif.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/memory/emif.c b/drivers/memory/emif.c index 402c6bc..9d9127b 100644 --- a/drivers/memory/emif.c +++ b/drivers/memory/emif.c @@ -1613,7 +1613,7 @@ static void emif_shutdown(struct platform_device *pdev) static int get_emif_reg_values(struct emif_data *emif, u32 freq, struct emif_regs *regs) { - u32 cs1_used, ip_rev, phy_type; + u32 ip_rev, phy_type; u32 cl, type; const struct lpddr2_timings *timings; const struct lpddr2_min_tck *min_tck; @@ -1621,7 +1621,6 @@ static int get_emif_reg_values(struct emif_data *emif, u32 freq, const struct lpddr2_addressing *addressing; struct emif_data *emif_for_calc; struct device *dev; - const struct emif_custom_configs *custom_configs; dev = emif->dev; /* @@ -1639,12 +1638,10 @@ static int get_emif_reg_values(struct emif_data *emif, u32 freq, device_info = emif_for_calc->plat_data->device_info; type = device_info->type; - cs1_used = device_info->cs1_used; ip_rev = emif_for_calc->plat_data->ip_rev; phy_type = emif_for_calc->plat_data->phy_type; min_tck = emif_for_calc->plat_data->min_tck; - custom_configs = emif_for_calc->plat_data->custom_configs; set_ddr_clk_period(freq); -- 2.7.4