Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp155514pxb; Wed, 4 Nov 2020 17:56:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzedQbhIGEv2Ldd9s+fcYVaNPFYfViIb2gPEgCNsU7OmFL45ItbokXGs0SMAhi92VhD+vwO X-Received: by 2002:a05:6402:1112:: with SMTP id u18mr232890edv.349.1604541361322; Wed, 04 Nov 2020 17:56:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604541361; cv=none; d=google.com; s=arc-20160816; b=LEWBEuZh0I7UKj0ISZOHBkjC3jg2H80hm915LsP7QVHOqf0RrCZ2sTYeoFi4s5X5XQ xDE9GuCmWLcL4Il8wTk61bvKyvbOYjtQO2tVsHK8jFaO1RGR9sH/9KlJ1lqIBz2Ls4yx 8z7ZK0muzFprAGw3FfEMKFKNYWgqk9vh2KtmrZUm7D1BbZCCP0USZkyT/8XFxE8I69F9 eW4b9FLQ0PKBiGIZGWhOzKCYFFAx/e/cXiRlp3weseu2r0s0FfRw/8/TErFDaAsEwYjy Pj+XjgfOE4NeyVtQKy1FDYAWtSFxzvPDkzhQZ0O4Pd/nQcxe+j5odPxUCaoypHbY33xl pjPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=N11YQP5JWDlzYUOsq+dRNgnpmMDx3VzgdNSl6rJjuXM=; b=YfBaF5J+ycLITtlD1/Z6B3MLa+HcQCNXTGDQqyxhFpsvR5uq+/GMSwuY+ZuPDBSmyy p2XW1J2VwI7yNH862K9v1mhZusj5zyr3g3gi3e5BLpX9uiBuVTFPd8fOUJ8FP2IS+rlE hAjwA79Y4zhpAwSoZFg3vbKYnw8FbpZIecIeginR260Ylm6sgKGGpV1QHC2M/5R3EgPm FVxcOtuSpqXiL7gkdQIIWCYaqL3HR3uFi7nciwrjyJQ9iWtgSEQEGj36PnfoGP617vve RMkvhCrZ5smu34YwJPPjJ4XOGjHWhhsBocW4AzXGqKNV0Cm3ubbNTeGPEIc81LsT5BGn AKdQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds19si84818ejc.306.2020.11.04.17.55.38; Wed, 04 Nov 2020 17:56:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731639AbgKDUEu (ORCPT + 99 others); Wed, 4 Nov 2020 15:04:50 -0500 Received: from mleia.com ([178.79.152.223]:55478 "EHLO mail.mleia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731503AbgKDUEt (ORCPT ); Wed, 4 Nov 2020 15:04:49 -0500 Received: from mail.mleia.com (localhost [127.0.0.1]) by mail.mleia.com (Postfix) with ESMTP id 0747A416CD3; Wed, 4 Nov 2020 20:04:48 +0000 (UTC) Subject: Re: [PATCH 19/36] tty: serial: lpc32xx_hs: Remove unused variable 'tmp' To: Lee Jones Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , Sylvain Lemieux , Kevin Wells , Roland Stigge , linux-serial@vger.kernel.org References: <20201104193549.4026187-1-lee.jones@linaro.org> <20201104193549.4026187-20-lee.jones@linaro.org> From: Vladimir Zapolskiy Message-ID: <208ff62b-c6c0-4b2c-250c-7951f422ba54@mleia.com> Date: Wed, 4 Nov 2020 22:04:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201104193549.4026187-20-lee.jones@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-49551924 X-CRM114-CacheID: sfid-20201104_200448_073610_BFADF4C5 X-CRM114-Status: GOOD ( 16.54 ) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lee, On 11/4/20 9:35 PM, Lee Jones wrote: > 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) > Thank you for the change. Acked-by: Vladimir Zapolskiy I'm sure the change is correct, likely the local variable was introduced to prevent an unwanted probable optimization by some odd/ancient compiler. -- Best wishes, Vladimir