Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1540525pxb; Wed, 4 Nov 2020 11:40:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgDhR8sL+Lt7aTiIAn8b7ex1hr/S8MtRfAAnu9UvC6ywVyAOygPkAAdVtQBlTxyJh3P65R X-Received: by 2002:a17:906:d8ce:: with SMTP id re14mr26039777ejb.275.1604518814773; Wed, 04 Nov 2020 11:40:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604518814; cv=none; d=google.com; s=arc-20160816; b=x11XFyVFA/MhPrDQd37p4MbBBlOS+4VKU6hQMOH/8lJTcs+pRdcj1T3AwlAPgpihpu FN8LvL+C2GoDiXxE1udDc/edpaPvORTn/NOE3icCFGnDjYPM7pMYgUvII/SAbgvDwQCl p2S9BfkWp6QkRXhCv6pTgKFfzIw7PqqgzTtNI9Q/9nbMkWb7Hr0I8oyYTOLNJujEckFW s1dcV8+euygyaAdoZrSe/T2H9Diib4iLx/Zp7AYdysEln8rSkxGNS4W+Tngk1jyBAuNY ARz83CbWWyy/qu7OVAkmZ4zMQMJVTNBPkVElJGw9R8lwy8qknocNOtyEpWImVjd8txX/ etlQ== 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=sjXTZO3THTknUKc+FF8iaHBvsw+0f6VMadCbFHOAPuM=; b=VZmEuXY8xu3I4Ep5R8+dyKYgkMX3FHUGqwb00/Y0EfQDMCOE5jGoK4lSq0JKLXBsiM 4DSP6sbPbmxrS+YxNcliqsxVT0OEgPOCNnJ1s3IIw9lwVeOGM2OdpZg3BM4pIk4EAcH8 Lw1b76JGV2ZoG2tsGEwn0sKIJckQJz4QwlFA0SqAOFgED4u8sqb+r8PAv/RAzwsqKBVH TmHlmRdrW9SjrKrsjBvjyPtzuWRqh7XIQLwa4Qh8q+meWNdAUwc5DZ+h8cBbA1AUdKO1 aUcUDPg9TpogKe35qEG5Q6ZyBRVQXN8LFe4969KuE9quIybsPTU+zPRBmq8YdiL8nsuA pjEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ms2JX/ol"; 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 b15si1918897edv.389.2020.11.04.11.39.52; Wed, 04 Nov 2020 11:40:14 -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="ms2JX/ol"; 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 S1731210AbgKDThs (ORCPT + 99 others); Wed, 4 Nov 2020 14:37:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731188AbgKDTg1 (ORCPT ); Wed, 4 Nov 2020 14:36:27 -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 22C2FC061A4A for ; Wed, 4 Nov 2020 11:36:27 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id w1so23362151wrm.4 for ; Wed, 04 Nov 2020 11:36:27 -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=sjXTZO3THTknUKc+FF8iaHBvsw+0f6VMadCbFHOAPuM=; b=ms2JX/olfhvXUd5gZU8GpM2AlBUdhsOVTqftJLAZsSd3S6CA4St9e8Z3GVUJOPmBH3 Wv+e5VL/yIgilU8EvaWEC11WiXxDDYSZTosDlw9sO3Gem/ACN7zcS+464DoBy798QAcH OPG1s6i1ZL6NhVvbs5YXlsbdqZEHIzc0+LOC4YSprETgdP0IUwxP1HatTFbZr3Q1gVcv i854ry1t+jafdMYbiPc8nv8BT3ro4yc3QyZESN0BlPVfflbvzS0u+2sy5v8ZA98Wm1GT r3s419fmQ+DJ0EwoWS+et3BfGfkP9LbKal++RpqWiA5dqdiTmztKyhwwOy9HGefmTbgE YXXg== 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=sjXTZO3THTknUKc+FF8iaHBvsw+0f6VMadCbFHOAPuM=; b=VuFt1Q4fDayEP5Fhtl+pMVl7CHNvnIT2ehCHpCJvdKvpU1YN6pM3okyPLPvkEz1oxS 1MY3tbdCJvv9zQf9y4eYxCCfzJ2L+CTPQWYX+axA9WFPiHHJwpaJfZiR7+2RCy1QVwB2 Rss1Ua0gluu/FyAliXmQaTbiQYhH/bKgEkUPFFkOBvgdboeRde7LwfEOaPqzyoiWuDp+ b39HD+/96VMGCVTba5/fbf0278Y8YIhGyzw+qAQkwd+evyCoX8ovxheEiWWkmn/3Z53h qvkxNFohULUOA506KnjqICgpMIk1mtioY/DaT/a2+Dw6+YLjx9Hq1WLIvjGYlA/wTZPZ 8n9Q== X-Gm-Message-State: AOAM533vIO7SMnYSAqFfIvh8iKI+UHCspmzYnvdsG3WHKomL19zQiZcm HyLRMOlsAPb9k404/iTnLoT2rg== X-Received: by 2002:a5d:4c4f:: with SMTP id n15mr32969818wrt.137.1604518585814; Wed, 04 Nov 2020 11:36:25 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id x10sm4034444wrp.62.2020.11.04.11.36.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 11:36:25 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , Vladimir Zapolskiy , Sylvain Lemieux , Kevin Wells , Roland Stigge , linux-serial@vger.kernel.org Subject: [PATCH 19/36] tty: serial: lpc32xx_hs: Remove unused variable 'tmp' Date: Wed, 4 Nov 2020 19:35:32 +0000 Message-Id: <20201104193549.4026187-20-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/lpc32xx_hs.c: In function ‘__serial_uart_flush’: drivers/tty/serial/lpc32xx_hs.c:244:6: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: Vladimir Zapolskiy Cc: Sylvain Lemieux Cc: Kevin Wells Cc: Roland Stigge Cc: linux-serial@vger.kernel.org Signed-off-by: Lee Jones --- drivers/tty/serial/lpc32xx_hs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/lpc32xx_hs.c b/drivers/tty/serial/lpc32xx_hs.c index b5898c9320361..1fa098d7aec4b 100644 --- a/drivers/tty/serial/lpc32xx_hs.c +++ b/drivers/tty/serial/lpc32xx_hs.c @@ -241,12 +241,11 @@ static unsigned int __serial_get_clock_div(unsigned long uartclk, static void __serial_uart_flush(struct uart_port *port) { - u32 tmp; int cnt = 0; while ((readl(LPC32XX_HSUART_LEVEL(port->membase)) > 0) && (cnt++ < FIFO_READ_LIMIT)) - tmp = readl(LPC32XX_HSUART_FIFO(port->membase)); + readl(LPC32XX_HSUART_FIFO(port->membase)); } static void __serial_lpc32xx_rx(struct uart_port *port) -- 2.25.1