From patchwork Thu Oct 29 11:47:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zou Wei X-Patchwork-Id: 11866135 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1E03B6A2 for ; Thu, 29 Oct 2020 11:35:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0159D20796 for ; Thu, 29 Oct 2020 11:35:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725821AbgJ2Lfl (ORCPT ); Thu, 29 Oct 2020 07:35:41 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7099 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725812AbgJ2Lfl (ORCPT ); Thu, 29 Oct 2020 07:35:41 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CMNfh24BfzLr7F; Thu, 29 Oct 2020 19:35:40 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Thu, 29 Oct 2020 19:35:29 +0800 From: Zou Wei To: , , CC: , , "Zou Wei" Subject: [PATCH -next] platform/surface: remove status assignment without reading Date: Thu, 29 Oct 2020 19:47:28 +0800 Message-ID: <1603972048-64271-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org The status local variable is assigned but never read: drivers/platform/surface/surface3-wmi.c:60:14: warning: variable ‘status’ set but not used [-Wunused-but-set-variable] acpi_status status; ^~~~~~ Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/platform/surface/surface3-wmi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/platform/surface/surface3-wmi.c b/drivers/platform/surface/surface3-wmi.c index 130b6f5..ae1416c 100644 --- a/drivers/platform/surface/surface3-wmi.c +++ b/drivers/platform/surface/surface3-wmi.c @@ -57,12 +57,10 @@ static DEFINE_MUTEX(s3_wmi_lock); static int s3_wmi_query_block(const char *guid, int instance, int *ret) { struct acpi_buffer output = { ACPI_ALLOCATE_BUFFER, NULL }; - acpi_status status; union acpi_object *obj; int error = 0; mutex_lock(&s3_wmi_lock); - status = wmi_query_block(guid, instance, &output); obj = output.pointer;