[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20190821080649.34133-1-yanaijie@huawei.com>
Date: Wed, 21 Aug 2019 16:06:49 +0800
From: Jason Yan <yanaijie@...wei.com>
To: <leoyang.li@....com>, <roy.pledge@....com>,
<linuxppc-dev@...ts.ozlabs.org>, <madalin.bucur@....com>,
<linux-kernel@...r.kernel.org>
CC: Jason Yan <yanaijie@...wei.com>
Subject: [PATCH] soc/fsl/qbman: fix return value error in bm_shutdown_pool()
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 <yanaijie@...wei.com>
---
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
Powered by blists - more mailing lists