Skip to contentSkip to conversation

ACPI: scan: Drop useless and noisy debug statement

PATCH New Rafael J. Wysocki 1 participant 1 message Aug 31 ACPI

lore
Share & tools
lore

Rafael J. Wysocki

author maintainer
#0 lore raw

PATCH 1/1 ACPI: scan: Drop useless and noisy debug statement

From: "Rafael J. Wysocki" <[email protected]>

The debug message printing statement in handle_to_device() is super-noisy because it triggers whenever the presence of an attached struct acpi_device is checked for the given object in the ACPI namespace and it turns out that there is none. That is a perfectly valid situation and the lack of an attached struct acpi_device is not particularly interesting, so drop that message.

---
 drivers/acpi/scan.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/acpi/scan.c +2 -3
@@ -639,10 +639,9 @@ static struct acpi_device *handle_to_dev
 
 	status = acpi_get_data_full(handle, acpi_scan_drop_device,
 				    (void **)&adev, callback);
-	if (ACPI_FAILURE(status) || !adev) {
-		acpi_handle_debug(handle, "No context!\n");
+	if (ACPI_FAILURE(status) || !adev)
 		return NULL;
-	}
+
 	return adev;
 }