[PATCH] qbman: Remove set but not used variable 'err'
Zheng Yongjun
zhengyongjun3 at huawei.com
Fri Apr 3 18:35:27 AEDT 2020
From: network <network at ubuntu.network>
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/soc/fsl/qbman/bman.c:640:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
int err = 0;
^~~
err is never used, so remove it.
Reported-by: Hulk Robot <hulkci at huawei.com>
Signed-off-by: Zheng Yongjun <zhengyongjun3 at huawei.com>
Signed-off-by: network <network at ubuntu.network>
---
drivers/soc/fsl/qbman/bman.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/soc/fsl/qbman/bman.c b/drivers/soc/fsl/qbman/bman.c
index f4fb527..0a24433 100644
--- a/drivers/soc/fsl/qbman/bman.c
+++ b/drivers/soc/fsl/qbman/bman.c
@@ -637,7 +637,6 @@ int bman_p_irqsource_add(struct bman_portal *p, u32 bits)
int bm_shutdown_pool(u32 bpid)
{
- int err = 0;
struct bm_mc_command *bm_cmd;
union bm_mc_result *bm_res;
@@ -650,7 +649,6 @@ int bm_shutdown_pool(u32 bpid)
bm_mc_commit(&p->p, BM_MCC_VERB_CMD_ACQUIRE | 1);
if (!bm_mc_result_timeout(&p->p, &bm_res)) {
pr_crit("BMan Acquire Command timedout\n");
- err = -ETIMEDOUT;
goto done;
}
if (!(bm_res->verb & BM_MCR_VERB_ACQUIRE_BUFCOUNT)) {
--
2.7.4
More information about the Linuxppc-dev
mailing list