Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1432925ybb; Thu, 9 Apr 2020 01:57:35 -0700 (PDT) X-Google-Smtp-Source: APiQypIg5g1W0RWrsbJwvwusc7TAAz/UPjABRBut6H/HCPdfYozTGtPZfXXVZsqgibpDkYBAY4e3 X-Received: by 2002:a4a:cb02:: with SMTP id r2mr9183709ooq.28.1586422655321; Thu, 09 Apr 2020 01:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586422655; cv=none; d=google.com; s=arc-20160816; b=QTKge+zNm1HoLIyFtR+A1RvalW8ruqe56PpACmh+LHelhh89NbwiD5WHM724vgLO3z W+haDh14dT/+Qcu3sfKbrD1TscRE4k0e7dpU4+UPiPWkvAqSe2RDijW0fbgg1eIFWxQw hW7FXhRgB+PSNafA6BzL+0QzLW6qzSFdxFDkxoyJhDhatjcFG8k2O0Xp6UtyseDx1xZf GaXURNH812O4QmDwWCi1librakLHdQjRDjIv7Qj+XzrSLL/5JDY74Hb/lSMQuP5M/JDO 5i2VgRizlZInb05HMPfYYYYRBL9vPfCl4JC1RFKE/vjWXZZIiwk9chO1OnACEHBKKqyc sbuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=cbWXFYGC8XUhjaPQIX96BlX0KpabAgAmYrGJpXtB3Jo=; b=PBGMS2QCDHBfyxzwTdP50NLUSOXGt3I8VGx7A7vpInJeVAozzOHC28UCrJCLrW6Auu yAX2+ZglF/Cov+YUTv1aK9M2JuE9sOEo5ESgI2Kdi1c6nT+mNxPSBc8Yyn05OIBMuG84 zhUc/F/H4Cbd0Kj6W9QL5h25d7yYs+cvkdcc6ItymKOJ/nMew5FhCKcRMIdBkg6IXosU kYlqIS/YRA+M5xvMNo9iyBDA9kdv8EsoY/bV4xSGaPCze+QVU+mMHUPsHjAMNdE20/8N MyKryvYA7AkuV10YJYTBx8tP2IQO3Q6ToxiMn4xvxtFDPYWkH/bXcoRTSmgyKl5zsNuD eIeA== 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 192si3687108oii.36.2020.04.09.01.57.20; Thu, 09 Apr 2020 01:57:35 -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 S1726559AbgDIIz0 (ORCPT + 99 others); Thu, 9 Apr 2020 04:55:26 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12628 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725783AbgDIIz0 (ORCPT ); Thu, 9 Apr 2020 04:55:26 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id B955C4D58753A801B7C1; Thu, 9 Apr 2020 16:55:14 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Apr 2020 16:55:05 +0800 From: Jason Yan To: , , , , , , , , , CC: Jason Yan Subject: [PATCH] staging: vc04_services: remove set but not used 'local_entity_uc' Date: Thu, 9 Apr 2020 16:53:39 +0800 Message-ID: <20200409085339.47255-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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 Fix the following gcc warning: drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:2356:16: warning: variable ‘local_entity_uc’ set but not used [-Wunused-but-set-variable] int local_uc, local_entity_uc; ^~~~~~~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c index a1ea9777a444..2d3e114f4a66 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -2353,7 +2353,7 @@ vchiq_use_internal(struct vchiq_state *state, struct vchiq_service *service, enum vchiq_status ret = VCHIQ_SUCCESS; char entity[16]; int *entity_uc; - int local_uc, local_entity_uc; + int local_uc; if (!arm_state) goto out; @@ -2377,7 +2377,7 @@ vchiq_use_internal(struct vchiq_state *state, struct vchiq_service *service, write_lock_bh(&arm_state->susp_res_lock); local_uc = ++arm_state->videocore_use_count; - local_entity_uc = ++(*entity_uc); + ++(*entity_uc); vchiq_log_trace(vchiq_susp_log_level, "%s %s count %d, state count %d", -- 2.17.2