From patchwork Fri Apr 3 07:35:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zheng Yongjun X-Patchwork-Id: 1265997 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48txLG0Sw5z9sP7 for ; Fri, 3 Apr 2020 21:41:10 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=huawei.com Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48txLF6vXzzDqPm for ; Fri, 3 Apr 2020 21:41:09 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=huawei.com (client-ip=45.249.212.35; helo=huawei.com; envelope-from=zhengyongjun3@huawei.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=huawei.com X-Greylist: delayed 1309 seconds by postgrey-1.36 at bilbo; Fri, 03 Apr 2020 18:57:32 AEDT Received: from huawei.com (szxga07-in.huawei.com [45.249.212.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48tsjS0ZdpzDr7s for ; Fri, 3 Apr 2020 18:57:27 +1100 (AEDT) Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 458DD3DE9BAFA430ADE7; Fri, 3 Apr 2020 15:35:35 +0800 (CST) Received: from ubuntu.network (10.175.138.68) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Fri, 3 Apr 2020 15:35:27 +0800 From: Zheng Yongjun To: , Subject: [PATCH] qbman: Remove set but not used variable 'err' Date: Fri, 3 Apr 2020 15:35:27 +0800 Message-ID: <1585899327-2690-1-git-send-email-zhengyongjun3@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.175.138.68] X-CFilter-Loop: Reflected X-Mailman-Approved-At: Fri, 03 Apr 2020 21:39:51 +1100 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Zheng Yongjun , network Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" From: 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 Signed-off-by: Zheng Yongjun Signed-off-by: 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)) {