Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp89015pxk; Wed, 23 Sep 2020 23:43:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz10X+q6jfD3ho0FmdyEPs3lpaDWIAc6SYTHVjnCQGWyaHthgzEkxIxNZRuevHptO7KhE31 X-Received: by 2002:a17:906:2747:: with SMTP id a7mr3044784ejd.301.1600929782906; Wed, 23 Sep 2020 23:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600929782; cv=none; d=google.com; s=arc-20160816; b=hVZmsCaAKWBHS/TZcQzyc97KLQzVJWtmg4KP1FJ7HQoWueHI9W6ztSs+cFCkizzW8S rkBh7/r3L/66/4I0+rx4UsnV4uJBKhp5Xdlu/kCZQOOu2UbmRKJjbqzTklzv9DzcuFLW AK8iLwv+J4/CVIfrsBcSCfvL5TdTszrcRCabnITRP6GRUQiMaowLEj+IqRHKoXpXMJyy 2DOai565de1u/RUNcHnQ27aMcr/YW5cUKsm98XOeFTws7msyWvZg0FtjyIwLQlycDyVq rYZHpk58aySK7CZu5SSymXixJw7ko+Pdt/6/vzt1WCR7ePfQ9J0+mBCPaz6fbC/BifWD pxng== 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=Zy2K0yvPXAq6d/eq4VX9za8Cltch2v89FMZIrYVOFTg=; b=RMURhSpmEB9lQld2wo/e/dH3ML3FOT3HM0pmM9TGvDQSBR0QDOuD4brkYrxMYoFe8l 9u+RVfJq9HITlDoTbk2pLLdzPWSvfrj8K/WRgLRdS+un/+/uRRpGgp0/66hEDNNb/7kP jfa9opk5pmJgK0h4rmXB2qoGHk7D0InN2tvZ/DAMMekH12LYrymfTYfDCINqwxtMyO9P IXlk61GvjvF4tN/lq6XxZKvMc7w3RPpRcJbW4IEUI2Cxg3Q22xMgsI6r20ddT8HiwwD+ IDdxBZtiY1UuQ7TCuOlUUkJ7DhVD+k/DxYl7o6TnU4w+B4lqCMeZnLLvn4YYPOyg2WIF +JZw== 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 f9si1469894edt.429.2020.09.23.23.42.39; Wed, 23 Sep 2020 23:43:02 -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 S1726955AbgIXGlj (ORCPT + 99 others); Thu, 24 Sep 2020 02:41:39 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:49514 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726896AbgIXGli (ORCPT ); Thu, 24 Sep 2020 02:41:38 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 78119B48A4080B00F43B; Thu, 24 Sep 2020 14:41:34 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Thu, 24 Sep 2020 14:41:28 +0800 From: Qinglang Miao To: Thomas Bogendoerfer CC: , , "Qinglang Miao" Subject: [PATCH -next] MIPS: OCTEON: fix error - use 'ret' after remove it Date: Thu, 24 Sep 2020 14:41:42 +0800 Message-ID: <20200924064142.90491-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 Variable ret was removed in commit 0ee69c589ec("MIPS: OCTEON: use devm_platform_ioremap_resource") but still being used in devm_release_mem_region which is unneeded. So remove this line to fix error. Fixes: 0ee69c589ec("MIPS: OCTEON: use devm_platform_ioremap_resource") Reported-by: kernel test robot Signed-off-by: Qinglang Miao --- arch/mips/cavium-octeon/octeon-usb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/mips/cavium-octeon/octeon-usb.c b/arch/mips/cavium-octeon/octeon-usb.c index 97f6dc31e1b4..987a94cbf3d0 100644 --- a/arch/mips/cavium-octeon/octeon-usb.c +++ b/arch/mips/cavium-octeon/octeon-usb.c @@ -534,8 +534,6 @@ static int __init dwc3_octeon_device_init(void) dev_info(&pdev->dev, "clocks initialized.\n"); mutex_unlock(&dwc3_octeon_clocks_mutex); devm_iounmap(&pdev->dev, base); - devm_release_mem_region(&pdev->dev, res->start, - resource_size(res)); } } while (node != NULL); -- 2.23.0