From patchwork Wed Apr 19 20:17:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9688845 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 114E8602DC for ; Wed, 19 Apr 2017 20:19:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 043D52842E for ; Wed, 19 Apr 2017 20:19:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EBE2328449; Wed, 19 Apr 2017 20:19:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B22A82842E for ; Wed, 19 Apr 2017 20:19:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:To:Subject:From:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bj3MurrYmb0RbP6rbrgz62N3toMVg4u+Na8aBkZCQmw=; b=m52EF5BiaRs+KV 24xv5ZCC4aDcWp+yzfjOMHmxG1Nhl/HgdASNVmSOj0j2qKGNLosN92LZsdrEfETCKpWjohBIIQwiT kdMDj1+l/glUPz25VMDWD06KmYXCxYKuEFxtQGqBuRStLbOYghm5sTuSnBPp37z1TkFnVSEsd3OKh 0pY9E8SAso57TrqvPoplZpLHKQLDr/WkPtaeSy8ebd0jtrEO0FkynszzQMO7UNZ/6BniJESWvfgnU 5fYRT+vMsIUvLBJ1gTujgmbz81yZOSd7afiEP001jpIQ+pk+ACzTVuKJu9RiMYtolwkzRDQQoDKYK umkc/6LCqhH71je4lw4g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d0w41-0005Uu-Sf; Wed, 19 Apr 2017 20:18:57 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d0w3t-0005B1-Bt for linux-amlogic@lists.infradead.org; Wed, 19 Apr 2017 20:18:54 +0000 Received: by mail-wm0-x242.google.com with SMTP id d79so6956664wmi.2 for ; Wed, 19 Apr 2017 13:18:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=dAlmgNFR1cilehgfScD+H+PEYqkCLu2BuHD+MHgHMoQ=; b=jJKEcU91rUg9tdoiPLzEXn9iivYa5j++sGFUHzUcRPuhzjhZ7n+7xoM/a0caa/z59j A+8ttvYf6VL+Y1SCDOYSEDMFs0WI/4CZRciyNJfTwVT2T5uYTn9+23fYaNmDnZG9Fp1g SwGf+H1m/oc7hjC5O1BAM1+xxFiOXpx5SWk6AA55YgafRLwtqmA383/+/m6Mo4Rq8qfK FIiyKiSH8pUbvHTH/5Bl8beQbHrKVDhwQwp0UdHJzoM6RDYJE4LWH9LwaNfrWGoqHU+Q RUvuAMp6xj+eyZsyGSvCxaeSB1T4chK3+1+gjgjdu4xZrY6y3uHnLSpCmtsO9wFqZt3I STqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=dAlmgNFR1cilehgfScD+H+PEYqkCLu2BuHD+MHgHMoQ=; b=FYVvVSN5jLyoVY9EzPfp9FTJiEYKtAntbf+8JL3g90tN14F5jYeRPoK0DgPLAMc1wC ze/8ZPMbOVe9irNqQNifOoK40BgyWxapGDAm36+np7rId9ecL/Dcbn95Q4FJgvBe3xYZ veGUa4WWQR3PLZ5UdGEUyBg3Q4FOnafb9InfOq5dUQfp4nupWWYy0M/U495Sj6pVOTYu mKvbQ5I3slG2Y1YcOXEuxairaGtsCX0lBGk8ynmx9Gx8sHozKwpL/L+u+tmFDRo5E8Hg 8G5rQpDoZVZ+kToG7PPYY8nczRWQZQabfMg9SBBVtmFHNjVHoa6lNijZcTi/6X/CoWQT Mafw== X-Gm-Message-State: AN3rC/6a+f5T8ZFnhkRNmDyvmTHYQtgIm5l0R/ZOskk09pBT6VTSLBey Lmvnx49UTY8Cnw== X-Received: by 10.28.199.76 with SMTP id x73mr4560377wmf.95.1492633107648; Wed, 19 Apr 2017 13:18:27 -0700 (PDT) Received: from ?IPv6:2003:c6:ebdc:4000:4076:286e:41cb:1a56? (p200300C6EBDC40004076286E41CB1A56.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:4076:286e:41cb:1a56]) by smtp.googlemail.com with ESMTPSA id 33sm4688760wrd.40.2017.04.19.13.18.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Apr 2017 13:18:27 -0700 (PDT) From: Heiner Kallweit Subject: [PATCH v2 2/6] serial: meson: remove dead code in meson_uart_change_speed To: Kevin Hilman , Greg Kroah-Hartman References: <4abafe6e-3c7c-049f-d450-ab27e2c7acfd@gmail.com> Message-ID: <3405accb-1996-8363-417c-a7f37ae361b0@gmail.com> Date: Wed, 19 Apr 2017 22:17:31 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: <4abafe6e-3c7c-049f-d450-ab27e2c7acfd@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170419_131849_796411_4EE73B9E X-CRM114-Status: UNSURE ( 7.58 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, =?UTF-8?Q?Andreas_F=c3=a4rber?= , linux-serial@vger.kernel.org, Neil Armstrong Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP val is set in both branches of the if clause, therefore the two removed lines are dead code. Signed-off-by: Heiner Kallweit --- v2: - no changes --- drivers/tty/serial/meson_uart.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c index e2e25da1..22857f1e 100644 --- a/drivers/tty/serial/meson_uart.c +++ b/drivers/tty/serial/meson_uart.c @@ -298,8 +298,6 @@ static void meson_uart_change_speed(struct uart_port *port, unsigned long baud) while (!meson_uart_tx_empty(port)) cpu_relax(); - val = readl(port->membase + AML_UART_REG5); - val &= ~AML_UART_BAUD_MASK; if (port->uartclk == 24000000) { val = ((port->uartclk / 3) / baud) - 1; val |= AML_UART_BAUD_XTAL;