From patchwork Wed Nov 4 19:35:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320577 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp5699021ilc; Wed, 4 Nov 2020 11:37:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwChOGeKGm39laP2S/xk27qPiUegEJeo1VNGvQDco9Euv97oSLK9O/Z6+N17zijeBfoD9+Z X-Received: by 2002:aa7:ce8c:: with SMTP id y12mr29719610edv.185.1604518668488; Wed, 04 Nov 2020 11:37:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604518668; cv=none; d=google.com; s=arc-20160816; b=uiF6c8Gl7As/xY7oMqMEdxnpzmyfcJT7z5y/TKsJ8FnrpF4v5p7+5POGhpVvM5alrs idkikWxGT21+8H0oU9t5nXahJOQYduNNQq6cNyrlr5tIxMdFUuHjASB+JCMy6iQAs6fT viaC723qsFcDVTvC4DU5dFxLZ6sihW7zxC7G2q0rJjJWDrPLlFxrtwmj9EWFpxOqnGFD 1rLEKMdDL6I9cIjfCVdfn53iIHiH0dNTijgOtmvTaByx9idr7asQqWvbecvp/lNNsTaE aN0otlVYAbVFIc9v9T0aXR3dB7rwirjEA8FsOOC5uSlsjvOdCRf7+8Ih+oqO0U19pLpQ k6UQ== 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=mHiqyWtezqa63j9w6Qono88VP5TMcMwRDXnAGQFPcL8oyYDHioUUWTXBzfm7CfHyVb inHvIBwTIC2jXO3fvkhrkp8jXYhlS8EtmQLQOx6GoIjW7Kgsb9wf70fMH1FvAh6YAtsC Y0JGtK1FP5RqEMG3p8EjPApEgWMeOFn4krTBfw0WyX0kSmUgFu6gOBw4sfpRQgi5IWA3 IwnpiT35+mE9C+OLdvA4vzhnDttnB4Q5WyuGvCYq9siLTIrlFNjNhejOp60xzv9/EkgW xg+7Xxf74Q+mS5f6MdPO5MiwEBUdCUwRZq/jDdL4Kbg85N9NyzUIs8ATFYwRnI2vvUWj f1hg== 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-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 j16si1958150eja.72.2020.11.04.11.37.48; Wed, 04 Nov 2020 11:37:48 -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="ms2JX/ol"; 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 S1730295AbgKDThr (ORCPT + 2 others); Wed, 4 Nov 2020 14:37:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731210AbgKDTg1 (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 22DC0C061A4C for ; Wed, 4 Nov 2020 11:36:27 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id g12so23287943wrp.10 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=EKBWYpW1YVBCECYhotD7tPNivucPD61tRHu5lLHyK2xDzJaLT6YIuBJEGbb7KPqTcd T5r6rnW0GZtMJWovZQ4V5hRT6cdtLS+lxTv+NPXPguUc1zUJUCiXTPOUTJEI2pHS0mM2 gL74jPETV1zkkg3/VbyOfXsfEDyiCZn6y5t3RBWzaVvhNaFJ6dP/OyGpXaBdlESg4QLQ riJCMgWuV973W4U67fyN4GYlese5CkQoCp4uyvllPEX3N2Dzs6JU9i/1H9Ujh5ucPwZz /K4amw1p9do9L65R7Sefzaurdk8PzOUAQNcx4q3lGxT+lcktQPEhuxJogUEWlTlCddgu Au1A== X-Gm-Message-State: AOAM532lR7TetBo9Af9gS0FiYcnwgl7Wqe/dIvbKbeqcuqSOvnxFJb0+ L0zhfxMr55oPoI0fsdfT2uxu0w== 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 Precedence: bulk List-ID: X-Mailing-List: linux-serial@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(-) -- 2.25.1 Acked-by: Vladimir Zapolskiy 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)