Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1539452pxb; Wed, 4 Nov 2020 11:38:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJztLgU9cqxh0wxbvHgJt4p0U/lKsNTOybr5mb6cu+6x/wpHmp6JZxOlAxwY7t0e0wbbkB+E X-Received: by 2002:a17:906:4698:: with SMTP id a24mr22144869ejr.90.1604518720496; Wed, 04 Nov 2020 11:38:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604518720; cv=none; d=google.com; s=arc-20160816; b=Q6pXqzHkohT6c8QZBgZabgzuX3UZRqOLY1nJX3sHoTm43DBfoftFHaAtlKpHjwhaQo n6tIcrejdmtGsqL5WJwlkxHauLUlMkmSppziOna5UtLxKkESQVj09fxYK3XUhgIm3ENA uhVXLaBgwqn6enhZVEVdGJssiQ3qf4mNXlfxCxpSybMj6oOzs/2ypQxxqqFncW+iZdcV 1U3GNI+tlqu8rLnahMvWjQaBczCold4qy9ykiS9PS7JlGp87PbRLIi3oJI+IR/5L777U WPXwHetkNNUAjjeHNTaGjeWG6FQHp8PI8iBKVQ3SoH2MrU8LCgvTrdraUr3EiqyuGESU a+Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZRGBxzQtBfGTRe7EqXYUnIcL2t2WHoGJ4hWtx+aHv4c=; b=zZkcPAnW7C8V3XKZbVm1QrxhkLBkx8VjG8b8PdcOhYPr7dieBtqFLnNQp3+J4MhD75 1wED1i74heQ6CS3fN2wx/vOCBhC3n9Y7PvKBPuOGmrotPDMHI1rl6AFW3RKh5/TPRCwF CceqO9ENE/WUqDAA4q0KhCsClY7X40dU3AdF/r6gBUerk/Kx5BeaSYd2mDOZNSt80E0i WayyBKprj2azJLjiokTEjLilax6WrBnjNY7PKuyI4U5QNrjm356TZj9VSaXkkY7Th/uJ O74bkZQcLKolKdKTIY+BBG53Pa2bTJA6Y22HnqyRZxNb4yn+X4ZuGuVjhFi546eiUcQk SyKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YHTiFMRk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a14si2080259ejs.111.2020.11.04.11.38.17; Wed, 04 Nov 2020 11:38:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YHTiFMRk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731281AbgKDTga (ORCPT + 99 others); Wed, 4 Nov 2020 14:36:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730983AbgKDTgU (ORCPT ); Wed, 4 Nov 2020 14:36:20 -0500 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F475C0613D4 for ; Wed, 4 Nov 2020 11:36:20 -0800 (PST) Received: by mail-wr1-x442.google.com with SMTP id x7so23338968wrl.3 for ; Wed, 04 Nov 2020 11:36:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZRGBxzQtBfGTRe7EqXYUnIcL2t2WHoGJ4hWtx+aHv4c=; b=YHTiFMRkE/9n47TPA+A1i93yUz5O+ImX7W2Xhyx04uUSduApku9suwx2FzSaJonUjv a5PHQ0i/GK4CbcDeK70V1zA0ZOBWfJ3fk2Uv4lCIVFBs5FB5EQq+t3ocSxZLRV1r/XHO x6VwGq7e99bbQT4nil61aoKB0hqOdR4mlrIB5dxW6Cps44btfF82dRoyEb1OkrIYS8VX BfcindWv8Z9YWFBpW++7Sr22VbItLakxYMCWqAxVYZBPmYGoWSmEM9JKNH6ECbm8faHs qf5Ab9xOaLJGu7XkIhax8pLb5i7yP7YFn6q39FTKiOk0D+mQGZgEkeimJfS6FW5KLv8e dDQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZRGBxzQtBfGTRe7EqXYUnIcL2t2WHoGJ4hWtx+aHv4c=; b=aJ5Xfg/eFaUj1XLwpTgu4pz5BO11aX9kcco6rpGI8mFtOEW10NcMBrgECihd3rt4YK G9W4SAfCVZcjUlLDLJlYJFmuwNPYd3iXdWgn5qBqjgjsSZIPY3Pvt2HeZD5SeQZbkcef gAqQj4mDsJCY3Be2O2/1jEmZS7lJaj1hEUkNkBvt5S3YDfYoaI+ulbgenm8DRXdG+h08 Nvx5VBR5XM6eYFP8tmgScAw2uhCbLWvRic1gXcK75KBrzwgI3fWA1CP+Rwq8hDW9Xxb+ CijQzQPSaJ2G6XLAKKA7B8aR/FAKeQGRfKPdIo/CfjWAvW4kqUv7NMel4kdMFjtDiizN PULQ== X-Gm-Message-State: AOAM533JBeh4jc2fR2TxA4QgqzBHjk62BKI6R95+gvKnAynOmODwT6Sp a7l+kKUdc60MGZ5anCv8wnEFFA== X-Received: by 2002:adf:c101:: with SMTP id r1mr32418679wre.87.1604518578909; Wed, 04 Nov 2020 11:36:18 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id x10sm4034444wrp.62.2020.11.04.11.36.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 11:36:18 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , Colin Ian King , "David A. Hinds" , linux-serial@vger.kernel.org Subject: [PATCH 14/36] tty: serial: 8250: serial_cs: Remove unused/unchecked variable 'err' Date: Wed, 4 Nov 2020 19:35:27 +0000 Message-Id: <20201104193549.4026187-15-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201104193549.4026187-1-lee.jones@linaro.org> References: <20201104193549.4026187-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): 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] Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: Colin Ian King Cc: "David A. Hinds" Cc: linux-serial@vger.kernel.org Signed-off-by: Lee Jones --- 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 e3d10794dbba3..35ff6627c61be 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; -- 2.25.1