Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1609565ybl; Thu, 5 Dec 2019 04:17:35 -0800 (PST) X-Google-Smtp-Source: APXvYqzu8bWR0KgbINB2uqdh7Csudc5ystmzWiULTHYNi+nGmNWqwwoXhEHULXYsTB/RiBrAUr4A X-Received: by 2002:aca:47d7:: with SMTP id u206mr1251268oia.79.1575548255785; Thu, 05 Dec 2019 04:17:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575548255; cv=none; d=google.com; s=arc-20160816; b=OfpSiF/MHta+hMQfku3vSFz4qU4gNhMsCZ+qmVjH2rPK/Oxf8YXnLRFclka+xiVCLj kmHtfhWEUnOjhYesoGLYB7QO7T7LSbfuXUatqu76zao+11PO6cCTclx4lmb80YppyLuX pYZOA6FtzhKQu2RbE2U0i5cytYhSKGwi+OgJBvxsEAMypseTXsF6Uk/rE8VSzDDP28dU csw82f97v7wDYCeZD/NDNUbMsRjniL2ecOwBTor8lRD5dWRRx4GrpVsbLuZW2FtN9IGN kEQ7QaZxtYLLdIbkDC32pUqEFbainnOoBAl2BUAqp/zbywYXbNikTLHnX8LWvSx1oLUA YuVA== 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=LXXd72YdaP+4zzmd1G7fWKiJF5uAKLjcFgj+7K4sC4A=; b=etQmxYAHO3x3ew1fotzfSMYM/D4ICGXygIob88splg0E8Ogw1L8bxujTaGX6LfmMZa WADLf4dJdWcSplpkDEsw3gybjbNEDbJo7QlRKoL9kU+Zs+XvIYjLzInyRtHnYoYHExTb klaU3s1LAce1DcbJWbBXdrQkItawragTlYlHLMTtO4CmXDfBD4ygnyJThY1bL8Y84pDH AwmraH/jrF9LV7K0nrCOTi1sx+eU84Kro655I9L53k4jhoLpgpe0l5bWGBTxKEbIS/+P 2VXTXnUk66jOs0S8EqsYqPmZ87PkLRHt/Gied0PNIk6lF3GAbwAo1c1/w59518oE/v1a HXsw== 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 f9si4835912otp.111.2019.12.05.04.17.22; Thu, 05 Dec 2019 04:17:35 -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; 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 S1729259AbfLEMQW (ORCPT + 99 others); Thu, 5 Dec 2019 07:16:22 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:7638 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729048AbfLEMQW (ORCPT ); Thu, 5 Dec 2019 07:16:22 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 2B4B95CFC33B79EDECFB; Thu, 5 Dec 2019 20:16:18 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Thu, 5 Dec 2019 20:16:08 +0800 From: Xiongfeng Wang To: , CC: , , , Subject: [PATCH] tty: serial: 8250: remove set but unused variable Date: Thu, 5 Dec 2019 20:11:43 +0800 Message-ID: <1575547903-52355-1-git-send-email-wangxiongfeng2@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following warning: drivers/tty/serial/8250/serial_cs.c: In function multi_config: drivers/tty/serial/8250/serial_cs.c:562:7: warning: variable err set but not used [-Wunused-but-set-variable] Reported-by: Hulk Robot Signed-off-by: Xiongfeng Wang --- drivers/tty/serial/8250/serial_cs.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/tty/serial/8250/serial_cs.c b/drivers/tty/serial/8250/serial_cs.c index c8186a0..eeda6a0 100644 --- a/drivers/tty/serial/8250/serial_cs.c +++ b/drivers/tty/serial/8250/serial_cs.c @@ -559,16 +559,13 @@ static int multi_config(struct pcmcia_device *link) */ if (info->manfid == MANFID_OXSEMI || (info->manfid == MANFID_POSSIO && info->prodid == PRODID_POSSIO_GCC)) { - int err; - if (link->config_index == 1 || link->config_index == 3) { - err = setup_serial(link, info, base2, - link->irq); + setup_serial(link, info, base2, link->irq); base2 = link->resource[0]->start; } else { - err = setup_serial(link, info, link->resource[0]->start, - link->irq); + setup_serial(link, info, link->resource[0]->start, + link->irq); } info->c950ctrl = base2; -- 1.7.12.4