Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2810081rdh; Sun, 26 Nov 2023 21:59:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvkeRnAZ5E7+Hi1B9AHAj6oj5WfOR00IXrC0KDql6NhyDI2tXJ+IvTs8YNCb1cVgqZkpei X-Received: by 2002:a17:903:120b:b0:1cc:bf63:929 with SMTP id l11-20020a170903120b00b001ccbf630929mr13647239plh.64.1701064775917; Sun, 26 Nov 2023 21:59:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701064775; cv=none; d=google.com; s=arc-20160816; b=NUbAi20oNQ5Dj36TiXl8nYKcXd/FHHOikPxgs3L9Ua22lvs30SkL9lfAuDb65xTT+g 9H+tAxnwKaKb+g6pOs15Mr5J3vQoXBBTPTJCdWaINf5Lh59yCJQ6zxK/c2QJFmqQDdF8 BHLYozqiu9+E26NhbnZl9yhPjG6K2BftLlcXM957GThOiiZrYWf5L+qjoDBM1CikfYS1 6W2LTbji/SVyquo4uxtwFWQI3wFcWP7x9zpgMI4HvzxlBawGb4alnxb2rSAZScXpnety nl0tG1ErXW+Y25EvAbg66z8i/RE6hnrtYRF0rBjYBWWhdIjjw6otGVotWro8kws1yxLI hvEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=T+lkPxpcGV4ulENWtL8UIKN/+j2CNZhdMfJlWPRbNbU=; fh=0mfkXU7WlTtJsWj2BhNMymiiBw9+IvXwQh9XspjSLmo=; b=TlFCRoFnlxLN5OuEU1uILsYViUa489M4JDRvCnV6Ud2QImCsNLChWuYny32RuXzqB3 lAovdjt1tEZBxGwzvH7GfOO/imD6hAcVzSq6bqu5F9NJdcFXlB0hu69uuAZKhW3/RdC3 ByHd6CMcbjbnXAm+OA57T9nHU99YICKfN2KWBMyGbJUibAxPTbhM/G9tnglRRkcVTW+n 6uqLENdpf6GgVRRkId8i6dDyTbxQzIsbndR0hZ3NMRw6zfQOtZVLcv6NcKptDZEtsGGc YwsKAUni7S9TI6UHilTBY4gOWyHGSKOvDU4i16UNQHLj/aVUjPxs2T1kyZsxt4qO8SC6 dgTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=duYudwbb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id v3-20020a170902d68300b001cc2293b5e0si8763026ply.96.2023.11.26.21.59.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 21:59:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=duYudwbb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id B2819803B3A2; Sun, 26 Nov 2023 21:59:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229936AbjK0F7S (ORCPT + 99 others); Mon, 27 Nov 2023 00:59:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbjK0F7R (ORCPT ); Mon, 27 Nov 2023 00:59:17 -0500 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0BF1135; Sun, 26 Nov 2023 21:59:23 -0800 (PST) Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-5bd33a450fdso2740616a12.0; Sun, 26 Nov 2023 21:59:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701064763; x=1701669563; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=T+lkPxpcGV4ulENWtL8UIKN/+j2CNZhdMfJlWPRbNbU=; b=duYudwbbeqcH+XWtSQ8mUZK/37sVW4InUWrAVTGMKUMECoWmFOIgn7JMyOOuX4qQ7z gEiCRMqBKJr9Ed3FTU+cmLvsvoS2ycl50RlFEyNqniiI42I7jX+lBQKirLvmbgI6XD4X 5qd5x4rq3gM7GkRK0ItmNzGL2Nc9dWIi8nSP5igxtU0kUeN9gpK2/PndnY+WRd4HGxBA fwX+7xIe5GNb6Agpj4x1nk1iuwf3VxWYESxOWJsoFGRlyyAaOiYLp7gfwDd+5ybx7fsJ hGBqSgj64cTi648BzCd1RgpDMN3x5WFVTADLTFVSIhWOHCQcTnXaRX3N9T5EaDXHOLOz r7XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701064763; x=1701669563; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=T+lkPxpcGV4ulENWtL8UIKN/+j2CNZhdMfJlWPRbNbU=; b=hCbmxNGxKbjOC5FDxNcHBfoaVLv2X8em1o0PWCGWGThlAwN8kuJ8eSmcj6CtojXDrA rWS1RwlagHkIC1pJWMu6dUE+GA91D9NTQfBpV5gHGCcLowaAeEkak8/a9+9pQAb7eOvJ m+M3iUid3IiLUuxShrfUcnm2vsEZj/cUvEsh2jh2H6DQSvv/BhH1dQ1RwEjit8wpdeya 0Uk5wWpCU4geR777peRCWr/VIsmbHmMlKodN958L8j+EZFEXXods9d59S8nN3+FjbpOf FVtEnD7dVOeUzbMxsppxuO1mdA9KDEDsJbj5HGeqtT1do6RYXg6JTRbeHVmTxmj8uGIL /6RA== X-Gm-Message-State: AOJu0Yw8BYT7Vp2vVD/ChZ/D5EXPxK816/vEoTUaPLa+h8nC0ee2PGrT zdNH2a+cF178UHgXeAca5tlWTdCzIfY= X-Received: by 2002:a17:90a:1904:b0:27d:1f9f:a57f with SMTP id 4-20020a17090a190400b0027d1f9fa57fmr13232816pjg.32.1701064763065; Sun, 26 Nov 2023 21:59:23 -0800 (PST) Received: from code.. ([144.202.108.46]) by smtp.gmail.com with ESMTPSA id gm3-20020a17090b100300b0026f39c90111sm6599692pjb.20.2023.11.26.21.59.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 21:59:22 -0800 (PST) From: Yuntao Wang To: Robert Moore , "Rafael J. Wysocki" , Len Brown Cc: linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev, linux-kernel@vger.kernel.org, Yuntao Wang Subject: [PATCH] ACPICA: Remove unused struct field and incorrect comments Date: Mon, 27 Nov 2023 13:58:58 +0800 Message-ID: <20231127055858.41004-1-ytcoode@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sun, 26 Nov 2023 21:59:33 -0800 (PST) The return_object_type field in `struct acpi_evaluate_info` is unused, so remove it. There are also some issues in the comments of acpi_ps_execute_method(). First, the parameter_type field has already been removed from `struct acpi_evaluate_info`, so the corresponding field description in the comments should also be removed. Second, the return_object field description in the comments is duplicated. Remove these incorrect comments. Signed-off-by: Yuntao Wang --- drivers/acpi/acpica/acstruct.h | 1 - drivers/acpi/acpica/psxface.c | 3 --- 2 files changed, 4 deletions(-) diff --git a/drivers/acpi/acpica/acstruct.h b/drivers/acpi/acpica/acstruct.h index f8fee94ba708..fe57c3a16e59 100644 --- a/drivers/acpi/acpica/acstruct.h +++ b/drivers/acpi/acpica/acstruct.h @@ -169,7 +169,6 @@ struct acpi_evaluate_info { u16 param_count; /* Count of the input argument list */ u16 node_flags; /* Same as Node->Flags */ u8 pass_number; /* Parser pass number */ - u8 return_object_type; /* Object type of the returned object */ u8 flags; /* General flags */ }; diff --git a/drivers/acpi/acpica/psxface.c b/drivers/acpi/acpica/psxface.c index 6f4eace0ba69..df5679bbc510 100644 --- a/drivers/acpi/acpica/psxface.c +++ b/drivers/acpi/acpica/psxface.c @@ -70,9 +70,6 @@ acpi_debug_trace(const char *name, u32 debug_level, u32 debug_layer, u32 flags) * NULL if no parameters are being passed. * return_object - Where to put method's return value (if * any). If NULL, no value is returned. - * parameter_type - Type of Parameter list - * return_object - Where to put method's return value (if - * any). If NULL, no value is returned. * pass_number - Parse or execute pass * * RETURN: Status -- 2.43.0