Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3631283pxk; Tue, 29 Sep 2020 01:58:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybSfudC1GaYbt4UuDu35tbZJ7m9gx0NVnLk1EglazZx57o21OyN9+nC4mt/xTIgyYdIfj1 X-Received: by 2002:a05:6402:17fc:: with SMTP id t28mr2134331edy.244.1601369930294; Tue, 29 Sep 2020 01:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601369930; cv=none; d=google.com; s=arc-20160816; b=y7hwCnm6p5fLn/VwGRz7YQUKoibIqZgTWvu+j2wibOnK/8fjA34JvdntisOE+KcuDK WK+3DMSDxYkUuM7oOxGcfYLacDufwARv5hGCjjl9wKDmBL4pGlLlAIy79ByyxfaZw1GJ fddCA0MmjBrdK9O2UV4slKpWFB+dPjizv6oUxFO/nrhQMbObQVc5vVw2PD1wXTW25etX 0/z85t5PG/r1MKjLDyZ4iSGEgF1FxBIZRgeIkkXEWr9EiRZN9Dr/ezrbtlT9MHGyPnK7 wH1gKu+hLHsvqjd09F7XgYTcZZ7yT8tk+SN7pca6ezy9eY1jdBqqejG0/D588p3UFiaI TR1g== 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; bh=gHIm2Hw8XpKk33RGzOzeMnpZCmntzOOmJAHA7gs4Q+w=; b=THtc+qzDqo7PpMdNKJZAmK9Ve4xOzXiq3AbLtDMb4ZEKAPMfPVD7yNa4Fc7ihh17Kq PBnlkhwcSm7wJTVkrzKfkCmU5l8yLZvdKRXHIPk/Tygg10cuBqv27nZjOX2T250f9eXS c8vB4F0mlegjk3OPcPa2fKR9L2bj5BGTi88v2hmz4wo5/Ug1T6Du3GW7z8fn++eZSTPW jNPaHUlMiXvGYzyo0A3uOEWnnynENUVT8y727w6Pnok6YPTpSU6+KVMgblAFy6G8luIQ UwDH+0O+0J6hFBYbzuY2B8LmtbZSdBiQqb4WRVQ8uYUNAjyX13+bfMFJt7x1Fwg4L15P soDg== 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 m26si2195854eje.690.2020.09.29.01.58.27; Tue, 29 Sep 2020 01:58:50 -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; 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 S1727987AbgI2I5C (ORCPT + 99 others); Tue, 29 Sep 2020 04:57:02 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14704 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727468AbgI2I5B (ORCPT ); Tue, 29 Sep 2020 04:57:01 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id A03EA1992BC6526F4DEC; Tue, 29 Sep 2020 16:56:58 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Tue, 29 Sep 2020 16:56:52 +0800 From: Qinglang Miao To: Greg Kroah-Hartman , Jiri Slaby CC: , , "Qinglang Miao" Subject: [PATCH -next] serial: mvebu-uart: fix unused variable warning Date: Tue, 29 Sep 2020 16:56:51 +0800 Message-ID: <20200929085651.158283-1-miaoqinglang@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's a warning shows that 'ret' becomes an unused variable after simplify the return expression of mvebu_uart_probe(). So remove it. Fixes: b63537020db3 ("serial: mvebu-uart: simplify the return expression of mvebu_uart_probe()") Reported-by: Stephen Rothwell Signed-off-by: Qinglang Miao --- 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 4e9a590712cb..c9a51f18bf43 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.23.0