Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6502037ybi; Sun, 21 Jul 2019 19:37:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGhwnswosuq8cbRhgM18A5CtsGjlkX4bpb2WSTx/GcEekfcZUZFzrfzW8Gu0ucIzHi06oB X-Received: by 2002:a63:d002:: with SMTP id z2mr70896262pgf.364.1563763032535; Sun, 21 Jul 2019 19:37:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563763032; cv=none; d=google.com; s=arc-20160816; b=OchjgOnzaS+dVt+YGf6J2br3uLFZ9YI5rVJ1yjZIoUzonx7oWN+K1/cdiLWR5mWbya 7NToYvKRilqnk1sahHsxF2/ylDaYBNCG0iYcKfoQR0H0o40ljEB66k9xwzhBCFOhzFnB EZe08si4l54gPAzDQL2oNC/HNxC35i89IsJAdg4LnZebg5fiYbT1FvZuZOSJ8uDAtyF4 GlrPLCZwLBGqkcCkejZJG/kV70KiRAI5+of/uTx5g8R8QGYdwZSZ1ULgJCaESNU/+BG9 FyEOQAjt0S08tDxSKaIfhyz0Ql5v6S149VA14wXnERTDp/iEGJiTo1yVT5nbTXHEOuN3 c+Hw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7CEzcbOz71poU4j3yG0xg7J69W88eLOvN2k9jJzfLm8=; b=GJqJgxpqicianN3cB4OaYBGWlhts0BAIyThOsFDRAshlAGFbjbTKkXLGMS5iohXgcZ N5hZvSoKLXhxQBHN6SSxhLMNqKSJSFSfpbDlPp55DhC7dALLyGvpAgS/iIWdga4G0zGB gYdlJRGXM4xvKw8zPW23Kjmn2jpC/XC2IYPcTyc7YNO9/VxiU3Q1hxbQ1U/EVY7TNTV9 JJrlUJhDAWwJOYl2EiqKTXLzliXU5dn9O0LG+H2GorF5v2L6+PM08awM4JGwEpDFTP+v zYwPcNnmnYrRewLU0jDkvc72gk/dukU21c4fEH5Z05dfdxWQj5huPKLNoh4eVbZYdNNZ KMSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TuMIIfdy; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b23si7154002pjp.62.2019.07.21.19.36.56; Sun, 21 Jul 2019 19:37:12 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TuMIIfdy; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728692AbfGVCgF (ORCPT + 99 others); Sun, 21 Jul 2019 22:36:05 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:41610 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728662AbfGVCgE (ORCPT ); Sun, 21 Jul 2019 22:36:04 -0400 Received: by mail-io1-f67.google.com with SMTP id j5so66450003ioj.8; Sun, 21 Jul 2019 19:36:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7CEzcbOz71poU4j3yG0xg7J69W88eLOvN2k9jJzfLm8=; b=TuMIIfdyVwz4Q4mMVyjhYAoVVOOlk8i5e8EZkE9fcs7lDwW5SdfEr9lk98yIFg4XXx +wKvt9Z2MahPIR4l5fTkxUlqEeM8TSZz3zvMw4Cr+7PftPkDGE4TI+7GQFXKtMoQtpn+ pHpt+nYxea1gFZ3TOyrOq4TdV2Crrv9VJ8gulOTFyYLy7q4OnJjBE8Wfb8GvC6nj0QA6 31k+z+nMdhq7YYYIlov/FUYp387m+9JLfQLfXO9tHZRyrBfE1shZbsoOwh1mzY3K2yHn 5xTxNxl6P+jNkq5jQfzT/tVZGkwU8Cq/NKmrVqCK6LvW+LUpqTAInC+EOjBaZElc4XLP JXkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7CEzcbOz71poU4j3yG0xg7J69W88eLOvN2k9jJzfLm8=; b=r6CWsPc1KF+jspFQ1i+9m+NTVR8J2zUm5S/wP5OMsuFRdLvXc3vwwY5fUsSPA58tS9 rycDWsuGmgD/De51qcK0LEWFhQmceyaqTvEiTviyzo8kbfDkc390p3Z9deOun3OO7npY tbJcXkTVSbWBGQrhuiXmiEZTw/ShxY2fMp8nIB3bvWlJM8omDVdCScUui3+pKv1weihW 86LnNSj/lHU9RGr4vEW15Kk12bVNlP50QmAhYxMp+JOvRoG6nsrBFwUrZDovaG1IxRT9 aVbu5sfBiIdforb+TNbNgWY3e6G66o2V+oc+bCy+9mH+vSfafkAqNZiSWHPTQ2TKgccb z50Q== X-Gm-Message-State: APjAAAX+y0VU56/Iliq7QvEUY+XdSyw55LCAYtg+vgepNImu/LBl9KW/ ctwcLvBesyvoPIndkBELF7IbYHCWSpM39Q== X-Received: by 2002:a5e:8412:: with SMTP id h18mr63668858ioj.268.1563762963997; Sun, 21 Jul 2019 19:36:03 -0700 (PDT) Received: from localhost.localdomain (c-73-243-191-173.hsd1.co.comcast.net. [73.243.191.173]) by smtp.gmail.com with ESMTPSA id e188sm32816577ioa.3.2019.07.21.19.36.02 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 21 Jul 2019 19:36:03 -0700 (PDT) From: Kelsey Skunberg To: rjw@rjwysocki.net, lenb@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org, bjorn@helgaas.com, skunberg.kelsey@gmail.com Subject: [PATCH 2/3] ACPI: Remove acpi_has_method() call from scan.c Date: Sun, 21 Jul 2019 20:35:29 -0600 Message-Id: <20190722023530.67676-3-skunberg.kelsey@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190722023530.67676-1-skunberg.kelsey@gmail.com> References: <20190722023530.67676-1-skunberg.kelsey@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org acpi_evaluate_reference() will return an error if the DEP method does not exist. Checking if the DEP method exists before the acpi_evaluate_reference() call is not needed. Remove acpi_has_method() call to avoid additional work. Signed-off-by: Kelsey Skunberg --- drivers/acpi/scan.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 0e28270b0fd8..4f2b0b481cee 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -1803,9 +1803,6 @@ static void acpi_device_dep_initialize(struct acpi_device *adev) adev->dep_unmet = 0; - if (!acpi_has_method(adev->handle, "_DEP")) - return; - status = acpi_evaluate_reference(adev->handle, "_DEP", NULL, &dep_devices); if (ACPI_FAILURE(status)) { -- 2.20.1