Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4388072pxk; Wed, 30 Sep 2020 01:16:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6eEdPuGjQnswRsV+5HBlVuwu+AM2ZUyZWREbqPILid3ypOAQbB4iVsO+RncP2T0QJLaz7 X-Received: by 2002:a05:6402:10d5:: with SMTP id p21mr159283edu.14.1601453816314; Wed, 30 Sep 2020 01:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601453816; cv=none; d=google.com; s=arc-20160816; b=y3G/H7BE526v7DlZbPTaQpPjG/kphH0uYH9grypo0CYW12zD3KICyLlNSO5zBmvgQS AoCRhPrddv0l6B7/MBvO6Fe5e2iiI1PaJUvux08oNrma0mDvuNTWWJmLYP7c3tEwNNGv mXsNfmYtYenzZzRCC3iTvY9E560tVlhTo2fUHaJpJvBsD0fV0soC4NjLmtkOyZniV+a4 cDbOrqvm3D2JizOwveHcIpqsUxvVqIjkjx6QrbK5K/D+d/ro05Xv5+7b5nbfnxC5MHYz GtJNCkNQKLPmheTVjtGKQ7xsCpPPGM+mBsy8gfO3pMTXKyGrcZ7PW2D+Guoc4HVwxlc9 c2YA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=R35UUTJMurgzHTEafJYZTtjQpMJxWZuFDoF37yOkcQI=; b=zV3h6xHJvEfic7+Xg9qzh8BhVfO0TlHjwn4u5UfQHkujADBqP+ipQI9g3a3UBmEKR5 93BLisPrZx76VoyeuBqgWptj8aooXuaxP7lV+isXBD6HR8+sEtkv+lsi+fhSLHN/wwUS awwj5vQGiiHKJdq72P2fsFP2G1ILf9vwlo5d+BUfnD3NOvyeuu7YyHKESEhEfC33f2j9 jKx4s0WHhrq6q3qASwz+pGqY5Tk3G2LuPihpGPs9LzIRCKIqtYj+RqRvG5CwJpRgrpVB 9ZfUBvxd/zIkJ//eOw3QyjmEfG3k0cNXizbWfwNTcHS0AFvsnZ0/dk9mujrxftuMf/0i Ukuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oCO0WZF9; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l25si508353edv.228.2020.09.30.01.16.33; Wed, 30 Sep 2020 01:16:56 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=oCO0WZF9; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728417AbgI3IPR (ORCPT + 99 others); Wed, 30 Sep 2020 04:15:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728384AbgI3IPQ (ORCPT ); Wed, 30 Sep 2020 04:15:16 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48F10C061755; Wed, 30 Sep 2020 01:15:16 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id l126so657057pfd.5; Wed, 30 Sep 2020 01:15:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=R35UUTJMurgzHTEafJYZTtjQpMJxWZuFDoF37yOkcQI=; b=oCO0WZF93LZom3p+7Exyf36KYLBTH+Vg4OU1Fk9w1nLfafBwxftGcp/uFPpvWYZ5ME LXgDDJKRA6lI0Mmy4XV4ZE3iyMsgCUEF5bczv39NaV/dy3ZT+L2M/Z0rRrM2pgDaUV08 xc78QnBdQZAWntkrH7d3rJbkTup1A9qX32GX9yeOpmzDneQqdeDwm+QJYvWcBg1bIZst s6Jys4LvRS+YgogB1ckqawQi77x7n4SbuHcq4jynzQ9HBCLv0LPEzVJtJ5fI8UmGnUUu fiZ2zqv6qZt5a9DuCnLuufO8Fsr29JxIdBvOOZceTYzQNRddc3z9ioql/AzsylYhYBh2 FVbw== 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:mime-version :content-transfer-encoding; bh=R35UUTJMurgzHTEafJYZTtjQpMJxWZuFDoF37yOkcQI=; b=h8SEXdkzzLSH8uhr5KRxBl0Z+ilEQ1VBK9QhBBAcFEoAuJwHDWySez7utDgXgwbk6i 0MBdg9M8OiJVXH/8Ha42cbYD6hZwFLnfxLdvpX0J+2BZVPXUPYGkaVMNODBGF9bZwrgj 6BaeQ0VxSpE2pf/Iaj+kNJlSVvyStk9UNaJiLCFM7H8pOq4LGKzHvwGYvtG9BWnFR0hv nlsDtnc2GA37Hf8l4rgdIkoa+iTWBxqv7siTKma5YcAvFPj6OtZBfEvuPIdZ39D1Je9G zu08XpwBhaOh5B02qB1mLalBQIrBe1ZQqcxQSlf659J7dkn1Z/kaVP22NuEmjQABp4LZ 3rDQ== X-Gm-Message-State: AOAM530WYxhb1f3BnFihr5sRDSvSvN38UPj6l9MYOf9ngOoLvqAuVX0Z S2vTQ0dUvx+BVUx/Iv4Arw== X-Received: by 2002:a63:c1e:: with SMTP id b30mr1267597pgl.345.1601453715878; Wed, 30 Sep 2020 01:15:15 -0700 (PDT) Received: from localhost.localdomain ([47.242.140.181]) by smtp.gmail.com with ESMTPSA id 1sm1371684pgm.4.2020.09.30.01.15.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2020 01:15:14 -0700 (PDT) From: Pujin Shi To: Greg Kroah-Hartman Cc: Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, hankinsea@gmail.com, shipujin.t@gmail.com Subject: [PATCH] tty: serial: mvebu-uart: Remove unused variable 'ret' Date: Wed, 30 Sep 2020 16:14:59 +0800 Message-Id: <20200930081459.1269-1-shipujin.t@gmail.com> X-Mailer: git-send-email 2.18.4 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 'ret' variable is now defined but not used in mvebu_uart_probe(), causing this warning: drivers/tty/serial/mvebu-uart.c: In function ‘mvebu_uart_probe’: drivers/tty/serial/mvebu-uart.c:806:6: warning: unused variable ‘ret’ [-Wunused-variable] Signed-off-by: Pujin Shi --- drivers/tty/serial/mvebu-uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/mvebu-uart.c b/drivers/tty/serial/mvebu-uart.c index 7443c0506eb4..118b29912289 100644 --- a/drivers/tty/serial/mvebu-uart.c +++ b/drivers/tty/serial/mvebu-uart.c @@ -803,7 +803,7 @@ static int mvebu_uart_probe(struct platform_device *pdev) &pdev->dev); struct uart_port *port; struct mvebu_uart *mvuart; - int ret, id, irq; + int id, irq; if (!reg) { dev_err(&pdev->dev, "no registers defined\n"); -- 2.18.1