Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp143484ybc; Fri, 15 Nov 2019 19:02:51 -0800 (PST) X-Google-Smtp-Source: APXvYqxryHz8oAPgEC/zzfYjqlVxg1ktm395yvoOvEsYv3Zuj/64A2GIlJIHBtnkXLp7Xi9K29Wn X-Received: by 2002:a17:906:394c:: with SMTP id g12mr6069031eje.233.1573873371798; Fri, 15 Nov 2019 19:02:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573873371; cv=none; d=google.com; s=arc-20160816; b=NLmPj8vX6zvP3tQ2cAt9Wg5yeNS9Q4VfH+BSYtsecM2+OXnbIg7vM8e3IT7XWgLABD zaVyMstzva2UEStlINt6NTfIZb0hrgrC+X5gPPnId6GYks4OyIkS5PnJ/1k0YyBsBZlA z5jmCzbk0hiMlLIR1MKcy5RstDBvFR8JAfTuVC7cGpYN7snbAdd8s3vK7J5ygYD+QGVf DAHpiJH3yYe9G79g8gC9d8YbfKbYK6piaUg4dnWMmRwMsDK6xMHcQ+hRK7Y3M38c1Gsw zUZsrSUmA9IJ3opqCYIHL1SBzb5AstapjEOYtAe5QFLv2G/X0nzQhGP3vpTIMS9CjsUd Y+Kg== 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=uwaKvrr6ljQOGvs2RjItLBiRrBi25rlBte7wv04qPMk=; b=wNwbfntSe+RRf+8Gxv5yLX+bvE0IgHjxFopsh++mmbBGVMjfBBA8EHGqicCMljqKTP RjY5H7FmKZioYSrIPm+Fp2+lhdtZsZEEggpI7kxYHspG5nGEvhXEbo4elQYxuczHllIw g+8boheVPlWkc9HoFD+vwfMTvIN950gjjpQwkaawkeOpoXJihhvx6nX3fX4mulDJd3z5 0GFjyzKCdiLKdQ3m5v7ZMvtFRoGemWJCDNfBs7VEcdfe1/ZxwVTGbqaI7HDLLvMdCXQV G/1shYGfK8iTAP+73OjGiGf71dLJqdUkHtfVd1MJpnomF6teJAelvFRFmNB7Y54WmCtm LbIg== 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 jo17si7033336ejb.312.2019.11.15.19.02.21; Fri, 15 Nov 2019 19:02:51 -0800 (PST) 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 S1727302AbfKPDBF (ORCPT + 99 others); Fri, 15 Nov 2019 22:01:05 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:56826 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727181AbfKPDBF (ORCPT ); Fri, 15 Nov 2019 22:01:05 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id C094365A3DAFF918123B; Sat, 16 Nov 2019 11:01:03 +0800 (CST) Received: from localhost.localdomain (10.90.53.225) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Sat, 16 Nov 2019 11:00:52 +0800 From: Chen Wandun To: , , , , , CC: Subject: [PATCH] powerpc/pseries: remove variable 'status' set but not used Date: Sat, 16 Nov 2019 11:07:30 +0800 Message-ID: <1573873650-62511-1-git-send-email-chenwandun@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: arch/powerpc/platforms/pseries/ras.c: In function ras_epow_interrupt: arch/powerpc/platforms/pseries/ras.c:319:6: warning: variable status set but not used [-Wunused-but-set-variable] Signed-off-by: Chen Wandun --- arch/powerpc/platforms/pseries/ras.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/platforms/pseries/ras.c b/arch/powerpc/platforms/pseries/ras.c index 1d7f973..4a61d0f 100644 --- a/arch/powerpc/platforms/pseries/ras.c +++ b/arch/powerpc/platforms/pseries/ras.c @@ -316,12 +316,11 @@ static irqreturn_t ras_hotplug_interrupt(int irq, void *dev_id) /* Handle environmental and power warning (EPOW) interrupts. */ static irqreturn_t ras_epow_interrupt(int irq, void *dev_id) { - int status; int state; int critical; - status = rtas_get_sensor_fast(EPOW_SENSOR_TOKEN, EPOW_SENSOR_INDEX, - &state); + rtas_get_sensor_fast(EPOW_SENSOR_TOKEN, EPOW_SENSOR_INDEX, + &state); if (state > 3) critical = 1; /* Time Critical */ @@ -330,12 +329,12 @@ static irqreturn_t ras_epow_interrupt(int irq, void *dev_id) spin_lock(&ras_log_buf_lock); - status = rtas_call(ras_check_exception_token, 6, 1, NULL, - RTAS_VECTOR_EXTERNAL_INTERRUPT, - virq_to_hw(irq), - RTAS_EPOW_WARNING, - critical, __pa(&ras_log_buf), - rtas_get_error_log_max()); + rtas_call(ras_check_exception_token, 6, 1, NULL, + RTAS_VECTOR_EXTERNAL_INTERRUPT, + virq_to_hw(irq), + RTAS_EPOW_WARNING, + critical, __pa(&ras_log_buf), + rtas_get_error_log_max()); log_error(ras_log_buf, ERR_TYPE_RTAS_LOG, 0); -- 2.7.4