Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1420243imm; Wed, 19 Sep 2018 18:49:54 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYShpHp/8BHZJQTYfNbCh+X90V8yFwNt0FG4ErQ4fcxhCG50zWuuGralFFXGbaXNu0tTFUW X-Received: by 2002:a62:1314:: with SMTP id b20-v6mr39254630pfj.230.1537408194271; Wed, 19 Sep 2018 18:49:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537408194; cv=none; d=google.com; s=arc-20160816; b=r4YpvbJyW5J+ppoSqyAYsXjDU/Vv1DGK4lpxR8BzgaEDw/Pb6DhbguFYLicG8aqraH tCAx7ZIggE2jkPImJWivwLLkjmewyng7GO26CRsF44Hk88N6h5ro2+Xougnnw0/ujwc8 LHhBSqQG1SziSlboGmb7Vf7Yqmgh5+hVKinGTn3zZ9OkEziVNgn8XLpxtOvfYMkK3PEN bX+uNKrRJp5ozAMKrXRHuAVtkb59lCEcdu0iiuB6wxCAMvy0xuxKf8U0Ete0IfktzLFh gIGl2Bd2gyWrwLNgx+fmc76SZdlyDU2OfBVlCktthHg4vvVx4o2q4KY1l23CPNrX0L3H EZqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from; bh=YJGzPEo6SeRxRV6cawlGh94Yf3TrS783fogZ51KVgS8=; b=dwc+9+u+RGEbyVrkvdn2LmHx4+tJ6k6VKAHRS82oRikgy61D/1N4sIyPfTl9FZiER0 tMGLFUJ94XOdQgIg8r3tjBdnjjZxUMkNodlfvKFehbdElDXpPo+YAh6QLZS93OUlkeWA Hdz+rGotEs9UuTzcpVttN5LUqIiVmqxvaCXaA9IVRR3axyG/8Nx800KX9UHmfYw8tZyQ r+92Dtnp1DTfvfP1N5OTYPShBuE2HKebW8dN27J/iloK5ooMdcuoywMEljnDtstohACc trKzV8t3bVwclJUCErDL3GjcJpvIEbdG32VcLIV3G9ez870wBpgq0bATg3D35uA8FE8B RWoQ== 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 a61-v6si23422946plc.239.2018.09.19.18.49.39; Wed, 19 Sep 2018 18:49:54 -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 S1732524AbeITHaE (ORCPT + 99 others); Thu, 20 Sep 2018 03:30:04 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12627 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726065AbeITHaE (ORCPT ); Thu, 20 Sep 2018 03:30:04 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 09090DD247989; Thu, 20 Sep 2018 09:49:16 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.399.0; Thu, 20 Sep 2018 09:49:08 +0800 From: YueHaibing To: Greg Kroah-Hartman , Jiri Slaby CC: YueHaibing , , , Subject: [PATCH -next] serial: imx: remove set but not used variable 'rtsirq' Date: Thu, 20 Sep 2018 01:58:45 +0000 Message-ID: <1537408725-196364-1-git-send-email-yuehaibing@huawei.com> X-Mailer: git-send-email 1.8.3.1 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/tty/serial/imx.c: In function 'imx_uart_probe': drivers/tty/serial/imx.c:2198:20: warning: variable 'rtsirq' set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing --- drivers/tty/serial/imx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 4341589..1df7d23 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -2195,7 +2195,7 @@ static int imx_uart_probe(struct platform_device *pdev) int ret = 0; u32 ucr1; struct resource *res; - int txirq, rxirq, rtsirq; + int txirq, rxirq; sport = devm_kzalloc(&pdev->dev, sizeof(*sport), GFP_KERNEL); if (!sport) @@ -2220,7 +2220,6 @@ static int imx_uart_probe(struct platform_device *pdev) rxirq = platform_get_irq(pdev, 0); txirq = platform_get_irq(pdev, 1); - rtsirq = platform_get_irq(pdev, 2); sport->port.dev = &pdev->dev; sport->port.mapbase = res->start;