Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp508242ybl; Wed, 21 Aug 2019 00:52:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTf/bNwKOFNCUycXoEFzOwjePDXxvz7BvewpmqPjh9XqHhJebh1w9RZ8SS5j6DT5F4R3Yf X-Received: by 2002:a17:90a:ec12:: with SMTP id l18mr3888732pjy.6.1566373966591; Wed, 21 Aug 2019 00:52:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566373966; cv=none; d=google.com; s=arc-20160816; b=lUFzdTB1V3VT6d+poRb0aNW5SocyioFo7eVPdBj2IOgKqFbeQ48h1ysdVwSA03hfTC B0sJ6AgIEnCNSa9BIUHP2XCRhsACuvDQ8VGSt2V5ouOs0D9qnPHbqbApHETifW7tkYQS For9jaXNwq4/bnf3QBVGLrLNa3dhYvH0/xkXbXer2Bpzvxo/AmNJTnFfKaQhd1cwan05 rweno+8GIuMd3OkWijxUAb9MW+UPujOJZX8V3TWGoefTacuRbmI6mMj6KYq5Vj1rlH5V /m8eI/+l7gw3w34pNsWvA2VmQAMGne2BJrehOEmWrriDT1msyx7giU3yBIziyjklpF7c Mksg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=W8XP2p0cm76yUtceYECPMCw2urQCEealYs7BkIX5ogI=; b=ZKCaCtwORpAETaap1gPUZ+wndOOW6JliAFeKRmP6wyjJ27PDRIbiHhMT2r+kXvgWB1 smTFQhXqTB20S+MMCRoJeFxjdMyaHQMxRtUu5tichUOmvacjAiIZFxgt9xiJIXQbVS+j /WYQ4oWRaPeK4VDT1/WlL9E+rGjXu4zqU6BbG3bLuRjCIrfkMbU0a9HIM4MtyAqIGS4h GMDZwvinPneDdL6oYWqc8b6Ei1RzYJLqt+GfMx/Irm1mmbzVFxUTAbn1OlkQtBuWIhAS IJzlcQuUI8aDFlGxFLp36IsrSSJy2b0ptWOB7+KLXM8TPytMayv0J0ERK4QDbuUnK4mJ lxDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 14si13925876pgy.255.2019.08.21.00.52.31; Wed, 21 Aug 2019 00:52:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727504AbfHUHqN (ORCPT + 99 others); Wed, 21 Aug 2019 03:46:13 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:42010 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726224AbfHUHqM (ORCPT ); Wed, 21 Aug 2019 03:46:12 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 9760FDF27863EA7C08B9; Wed, 21 Aug 2019 15:46:10 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Wed, 21 Aug 2019 15:46:02 +0800 From: Jason Yan To: , , , , CC: Jason Yan Subject: [PATCH] soc/fsl/qbman: fix return value error in bm_shutdown_pool() Date: Wed, 21 Aug 2019 16:06:49 +0800 Message-ID: <20190821080649.34133-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 0505d00c8dba ("soc/fsl/qbman: Cleanup buffer pools if BMan was initialized prior to bootup") defined a new variable to store the return error, but forgot to return this value at the end of the function. Fixes: 0505d00c8dba ("soc/fsl/qbman: Cleanup buffer pools if BMan was initialized prior to bootup") Signed-off-by: Jason Yan --- drivers/soc/fsl/qbman/bman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/fsl/qbman/bman.c b/drivers/soc/fsl/qbman/bman.c index f4fb527d8301..c5dd026fe889 100644 --- a/drivers/soc/fsl/qbman/bman.c +++ b/drivers/soc/fsl/qbman/bman.c @@ -660,7 +660,7 @@ int bm_shutdown_pool(u32 bpid) } done: put_affine_portal(); - return 0; + return err; } struct gen_pool *bm_bpalloc; -- 2.17.2