From patchwork Wed Nov 4 19:35:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320579 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp5699210ilc; Wed, 4 Nov 2020 11:38:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzn8AWuepKnpBpLdU8OgP4y4i8PbWLLQhIXq72HvnxD2NZZgqNWanaLyC4/5DryCumyiQWB X-Received: by 2002:a17:906:3e08:: with SMTP id k8mr27248512eji.478.1604518689358; Wed, 04 Nov 2020 11:38:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604518689; cv=none; d=google.com; s=arc-20160816; b=Mcwiahvd+wzieljvoAmiGscYNNnxJdyM8JMHtbc0Kv8GOjpMFWaPbP96GR+YOwViJU 7eY6EW77WKADyTLg8X6Fe2V54fJ1vF/o82fz+eETQUiXlDoOt2yZTJ3LsFBR/DRfPRWa Z09EbNSOzDsPkSbwhNdTzOoX7NkXMnDzHSG7sUkTxSdx+tPFZt5yH3gBucucnQCBRRIc jK3xv4/l9Py8TefEzsRI+ZPxNhltjsFh5EQyPjCZKB9FxC84fkyx6F0aNJK1rtx81tLK pc8c6z8Sn9xhf+zqCtMDGbKefJY0og9zJWLZDSHoiWR0Z9FLfDnHHl6CVhNxJcl0j4lW dzHQ== 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=ADzQpX5A5QQGn5KGe8b3uSGzs1neIIdNiiTGg04Pmgw=; b=IESlciw37FggvYBhLkGawEPQEufXvHCldsSIwdCPv965Z9EvKuuoQeqVY/UZwFmv+P HcuMEOPw2qOPq5ugSELCT+X+pB0oelPacDqVKReUNki6VXPVw4/5cBD8Pq4HhyYQzUKH cgYwAK9VXnIWe6lTBBCiL9GtG39Zj+I1+bJdBK3+C2rGMHKTT58ZUwqBk6cwcjOZ3DN/ I7qPiuKQ5tcpeRgFD03oNzwx4QiYcyqjLXBUq7OfO0MyLpSiefnyhT0W9S8+BGGvjVZ5 GO86NUg/hYp20Rim2eKUjczadIzMxI4hury5CPkmkNFtq+94/De9S20ps5ezQljx5Rlf A6lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SrO3RCdI; spf=pass (google.com: domain of linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-serial-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 bi9si2724376edb.4.2020.11.04.11.38.09; Wed, 04 Nov 2020 11:38:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-serial-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=SrO3RCdI; spf=pass (google.com: domain of linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-serial-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 S1730741AbgKDTgR (ORCPT + 2 others); Wed, 4 Nov 2020 14:36:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730732AbgKDTgQ (ORCPT ); Wed, 4 Nov 2020 14:36:16 -0500 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41ABEC0613D4 for ; Wed, 4 Nov 2020 11:36:16 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id c17so3960172wrc.11 for ; Wed, 04 Nov 2020 11:36:16 -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=ADzQpX5A5QQGn5KGe8b3uSGzs1neIIdNiiTGg04Pmgw=; b=SrO3RCdIyN9ljWbZI6XCZ7EywYfrOo1xL8zKsErdi7L1aIALt/FKwB1/2mjx1Kllud tuurfpjJWEkhKTaVoIke0qteXbRh8SibXQ7RlvzTiWJ4Z/zFCcHciaQaD237p5F5iMtz 8oet6e9lsDIJbHOWAHI5YM4v7zUdCc/A5kCSKH3JXgfIT8ZKrolGsKEPL952SPz4VoP+ ZM1UoOLhvqGsV3JcGZNnOLEONBkfa3yya5gfvRY8Xgda+F0JHN7ibRTsBge5yoB/rukI hvllAsPhVlwJI5kK767AMsXVF5HLO4GXv2jToESPDup0u4FMjQ3uabpPemajT9A1/yqI 0g9A== 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=ADzQpX5A5QQGn5KGe8b3uSGzs1neIIdNiiTGg04Pmgw=; b=KhuR/+S/gqowq8JWPATOlV9hCF8RUNx5R+L7oIQ5f02tKHwezMQW1T3JuRV7Ry9E1b TKNS6YwbUc3qOdZ8Gwem/P+qTmNkrcJCI8MyPR0mXyxu3uqzv3UsbkNeVVKRcA2NDe1D QljgHNuIHz7w0LxyA29BxrB64Am7L67YWQY46kEPsw5G+3KurbWGax24pPdn/E6ZciL1 DH2Cm2Vx5i0Vj6P/4oXvR5ZxKBsQGGmrF8juelgAajj5PNwjECRW0eeSz//9TnrAJafl Sy0uMXMlv5anSqtWi/Kmx+Hqdz8XKhiEg6ibm3AL3jdxAS27cf2NbiDyQ3lDiQkIfJc5 NZfw== X-Gm-Message-State: AOAM530LDAJkCtB+Xv5KmGWvSoatTHFxQOLaaQh+XTA+SQO9rJEqlPOz /Wqy4FemWhIOPdhD1ut3g+eUMx3UvJEko4id X-Received: by 2002:adf:e3c2:: with SMTP id k2mr33940946wrm.412.1604518574973; Wed, 04 Nov 2020 11:36:14 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id x10sm4034444wrp.62.2020.11.04.11.36.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 11:36:14 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org Subject: [PATCH 11/36] tty: serial: jsm: jsm_cls: Remove unused variable 'discard' Date: Wed, 4 Nov 2020 19:35:24 +0000 Message-Id: <20201104193549.4026187-12-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 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/tty/serial/jsm/jsm_cls.c: In function ‘cls_copy_data_from_uart_to_queue’: drivers/tty/serial/jsm/jsm_cls.c:400:7: warning: variable ‘discard’ set but not used [-Wunused-but-set-variable] Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-serial@vger.kernel.org Signed-off-by: Lee Jones --- drivers/tty/serial/jsm/jsm_cls.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.25.1 diff --git a/drivers/tty/serial/jsm/jsm_cls.c b/drivers/tty/serial/jsm/jsm_cls.c index c061a7b7bd233..b507a2cec9269 100644 --- a/drivers/tty/serial/jsm/jsm_cls.c +++ b/drivers/tty/serial/jsm/jsm_cls.c @@ -397,10 +397,8 @@ static void cls_copy_data_from_uart_to_queue(struct jsm_channel *ch) * which in this case is the break signal. */ if (linestatus & error_mask) { - u8 discard; - linestatus = 0; - discard = readb(&ch->ch_cls_uart->txrx); + readb(&ch->ch_cls_uart->txrx); continue; }