Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1942130ybv; Fri, 14 Feb 2020 08:36:27 -0800 (PST) X-Google-Smtp-Source: APXvYqxQsbvzQbVx1F81EC+0Khvi1d5yAqpfa1+21F9QqrjE7gJJPDGccFx5FhPn6BfMl/RRtBZ2 X-Received: by 2002:a05:6808:2cd:: with SMTP id a13mr2489511oid.82.1581698187843; Fri, 14 Feb 2020 08:36:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698187; cv=none; d=google.com; s=arc-20160816; b=pXod+0WfCoVmoUnXG+5hLB6FX1SZstpw5pj4/uPqLvbg31rhJHVhykbcdhNG7F2qlE m3uJWWS+VIosNtmcwxDflygOEWbyYA3YGy4T/iSX9PafChFsx1LgL+bjQWza6i8CAJ7K 0n1i3VrfgNLj4cbs2qY+qsEmCemmMqqkVtyM2aixHmD68gfSsOXpVMmgH7a2E8X49QON ARGdA5jJ2Jdz6q+Vcz1+w7C6ZfH/xTkdKbzkcrqiY8VSX9WY6I7YWOmoWB89Sv+DYHBz A80EIBNNpY9zsavhi7A1InR0y/ek2+15pvsDCsXdh/l9WjRZRNwH6Ysf3gXXCsfnkRtd /d7w== 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=s8pf9ArhSZqi0QR7FBzoJQ9l8C/X+Bbf/b4ytSGUi0g=; b=G6UD/13bokwODq/yypRkzfXly5/khhl4TE7f1vGZVszbbjYmaxu+qp6WYne6MlOQuZ AHiFL9CsERKf1z4FnbLS68XK7heIWgMtaqiaOI+ELjpGISkK5wu5BbRf1Wd0eRY9e1hx mulmj89hpZWN6wfLw9cYsDAfp/r+jUX4S+1HK4YM5FVaTFcjU1+kfpQt+QQrfed9CmJT fvA9RXpVBVgN/f54YGKmMpXFwtzkqvShu5+zaPbScNqzg7fbDWCkI+Kba1disl7I9XcS I2vs1ktJ4s0g7IQfzJf+bpGl6od0ktjQj4wih/PTz86QdD3JktcNvGMAdEcNfG1gszO9 FWMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GeYiI3sq; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h28si3485073otg.63.2020.02.14.08.36.15; Fri, 14 Feb 2020 08:36:27 -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=@kernel.org header.s=default header.b=GeYiI3sq; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405952AbgBNQYl (ORCPT + 99 others); Fri, 14 Feb 2020 11:24:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:58782 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393004AbgBNQWy (ORCPT ); Fri, 14 Feb 2020 11:22:54 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1604224764; Fri, 14 Feb 2020 16:22:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697374; bh=MLyC7p5DCKqMmpilfaOF4DuT3roGEBIotitr0W0Cwvo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GeYiI3sq78bvCQFIlAAJ6dM05ed1kGH6DyZb9r8vwHdD+4Bag/NgVTBaH3JahPqQ+ QHSZNFq5erVl6uxwIRyh3hBh6leNBgXFbERvXtY4vliHOKYRyvR/WFO2dDEs6vtrXb NZY+hqtlYSbCGz+k9CegW/96mmmXN1J+lft87mLs= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Chen Zhou , Hulk Robot , "David S . Miller" , Sasha Levin , netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH AUTOSEL 4.9 072/141] net/wan/fsl_ucc_hdlc: remove set but not used variables 'ut_info' and 'ret' Date: Fri, 14 Feb 2020 11:20:12 -0500 Message-Id: <20200214162122.19794-72-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen Zhou [ Upstream commit 270fe2ceda66b6964d4c6f261d7f562a02c1c786 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wan/fsl_ucc_hdlc.c: In function ucc_hdlc_irq_handler: drivers/net/wan/fsl_ucc_hdlc.c:643:23: warning: variable ut_info set but not used [-Wunused-but-set-variable] drivers/net/wan/fsl_ucc_hdlc.c: In function uhdlc_suspend: drivers/net/wan/fsl_ucc_hdlc.c:880:23: warning: variable ut_info set but not used [-Wunused-but-set-variable] drivers/net/wan/fsl_ucc_hdlc.c: In function uhdlc_resume: drivers/net/wan/fsl_ucc_hdlc.c:925:6: warning: variable ret set but not used [-Wunused-but-set-variable] Reported-by: Hulk Robot Signed-off-by: Chen Zhou Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/wan/fsl_ucc_hdlc.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index 87bf05a81db50..7c4a30391f746 100644 --- a/drivers/net/wan/fsl_ucc_hdlc.c +++ b/drivers/net/wan/fsl_ucc_hdlc.c @@ -591,11 +591,9 @@ static irqreturn_t ucc_hdlc_irq_handler(int irq, void *dev_id) struct ucc_hdlc_private *priv = (struct ucc_hdlc_private *)dev_id; struct net_device *dev = priv->ndev; struct ucc_fast_private *uccf; - struct ucc_tdm_info *ut_info; u32 ucce; u32 uccm; - ut_info = priv->ut_info; uccf = priv->uccf; ucce = ioread32be(uccf->p_ucce); @@ -826,7 +824,6 @@ static void resume_clk_config(struct ucc_hdlc_private *priv) static int uhdlc_suspend(struct device *dev) { struct ucc_hdlc_private *priv = dev_get_drvdata(dev); - struct ucc_tdm_info *ut_info; struct ucc_fast __iomem *uf_regs; if (!priv) @@ -838,7 +835,6 @@ static int uhdlc_suspend(struct device *dev) netif_device_detach(priv->ndev); napi_disable(&priv->napi); - ut_info = priv->ut_info; uf_regs = priv->uf_regs; /* backup gumr guemr*/ @@ -872,7 +868,7 @@ static int uhdlc_resume(struct device *dev) struct ucc_fast __iomem *uf_regs; struct ucc_fast_private *uccf; struct ucc_fast_info *uf_info; - int ret, i; + int i; u32 cecr_subblock; u16 bd_status; @@ -917,16 +913,16 @@ static int uhdlc_resume(struct device *dev) /* Write to QE CECR, UCCx channel to Stop Transmission */ cecr_subblock = ucc_fast_get_qe_cr_subblock(uf_info->ucc_num); - ret = qe_issue_cmd(QE_STOP_TX, cecr_subblock, - (u8)QE_CR_PROTOCOL_UNSPECIFIED, 0); + qe_issue_cmd(QE_STOP_TX, cecr_subblock, + (u8)QE_CR_PROTOCOL_UNSPECIFIED, 0); /* Set UPSMR normal mode */ iowrite32be(0, &uf_regs->upsmr); /* init parameter base */ cecr_subblock = ucc_fast_get_qe_cr_subblock(uf_info->ucc_num); - ret = qe_issue_cmd(QE_ASSIGN_PAGE_TO_DEVICE, cecr_subblock, - QE_CR_PROTOCOL_UNSPECIFIED, priv->ucc_pram_offset); + qe_issue_cmd(QE_ASSIGN_PAGE_TO_DEVICE, cecr_subblock, + QE_CR_PROTOCOL_UNSPECIFIED, priv->ucc_pram_offset); priv->ucc_pram = (struct ucc_hdlc_param __iomem *) qe_muram_addr(priv->ucc_pram_offset); -- 2.20.1