Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11157702ybi; Thu, 25 Jul 2019 11:00:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyaPS5Y4UHik4xJmcVhT9+1XvyIcFcCuflhcncXT/ihGC+ERIjvqiwYpNDoBpLPpSrKlPDf X-Received: by 2002:a17:90a:ab01:: with SMTP id m1mr7709133pjq.69.1564077637381; Thu, 25 Jul 2019 11:00:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564077637; cv=none; d=google.com; s=arc-20160816; b=bZlgS4jOsNP3oa+qHovRsZDVLVpIstz+ihuaoSbyePYTmefr6AKHMELXPIYoEWOEDe 0x5cGnnSlH1lLqVgAEqq3+CvP6zTarq+oPcA9fJnwW+4MgwvlPleBKWxi6NEyQ51UzYV mKXPKEwORbJsBxN+ioLHHEUiR7+BU79J//WY6/3ROWGrJSfFn0HtIMPNg++OP5qEHIgR BtkqUyOPo22I6hgAnpnqo3AgjhbZWN4rnDGw/7hNAr1O1rgZqKgM3AwtIVEyO45ruQlO B5NRFT4peSvePFMEniGLgHKKLp8xRa2i+PR8xWhNY7FklfvPTKG48ksiu7wspmJKRXLF XLUA== 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=IyBiGer+LQbf7FQDciyP+6yZ8+zdqVY1OOeDlT03HYs=; b=0IT7KkIvt3tJbgAXQwOw3kWoHE1Qz5HJpCTgAFD++ck3lFb2q661cqKl3/nQ/uqeHM E4TB97nSUAPQ1v+Oc9he4ZBtvdDsyyYGzzcIKUhrFfvtBuSuqwZk6v1YQEghNXekKenz u5lX83dAmN3sDI09qCgfgb9hpsGnAXO5mrROnWxdlK73sx5/DOtwn4BpzN2KmAvuleGy I33xi5dcrXm18lT9OUFMV/8jgQoXld+U3Gv+J1r/mLHBv4u79PPWgf+pbY1UCCPQxVNX qLhfzmZJloO1YXiEhJvDOWOb5GNaMoqax6rGgB47pmyOIx++10jp5zs1KxtU/604K24F unHA== 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 g5si15562212pjp.71.2019.07.25.11.00.22; Thu, 25 Jul 2019 11:00:37 -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 S1728268AbfGYO2D (ORCPT + 99 others); Thu, 25 Jul 2019 10:28:03 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2728 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726260AbfGYO2D (ORCPT ); Thu, 25 Jul 2019 10:28:03 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id EF37DF7F374C1751FBF9; Thu, 25 Jul 2019 22:27:59 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.439.0; Thu, 25 Jul 2019 22:27:52 +0800 From: YueHaibing To: , , , , CC: , , , , , YueHaibing Subject: [PATCH -next] staging: vc04_services: fix used-but-set-variable warning Date: Thu, 25 Jul 2019 22:27:16 +0800 Message-ID: <20190725142716.49276-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org use variables 'local_entity_uc' and 'local_uc', mute gcc used-but-set-variable warning: drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c: In function vchiq_release_internal: drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:2827:16: warning: variable local_entity_uc set but not used [-Wunused-but-set-variable] drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:2827:6: warning: variable local_uc set but not used [-Wunused-but-set-variable] Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 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 cc4383d..04e6427 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -2861,15 +2861,13 @@ vchiq_release_internal(struct vchiq_state *state, struct vchiq_service *service) } else { vchiq_log_info(vchiq_susp_log_level, "%s %s count %d, state count %d - suspending", - __func__, entity, *entity_uc, - arm_state->videocore_use_count); + __func__, entity, local_entity_uc, local_uc); vchiq_arm_vcsuspend(state); } } else vchiq_log_trace(vchiq_susp_log_level, "%s %s count %d, state count %d", - __func__, entity, *entity_uc, - arm_state->videocore_use_count); + __func__, entity, local_entity_uc, local_uc); unlock: write_unlock_bh(&arm_state->susp_res_lock); -- 2.7.4