Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3152985pxv; Mon, 12 Jul 2021 10:30:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQhl1vpQ6tSzK9hC/HwoPnWkRFGN3ZdoMWgT/Xt8kKzz5gW6G5IFPA6Emwpcdt14EpZzxP X-Received: by 2002:a17:906:c354:: with SMTP id ci20mr173405ejb.435.1626111034424; Mon, 12 Jul 2021 10:30:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626111034; cv=none; d=google.com; s=arc-20160816; b=a+nSG9cy7RAgKnjY0qsGTuatd8zDDEDc563tpxrikm1a+NQFw7fl7d+3SWvpRWAa5w NSn0mXVr7k7nHqA19TNv6VrSSQxEPE1sPIiTOZSjMXuSfbs+/E7Z+bLNM5gJ/U7QWqwf +65sA7irpQrSy2lYDRvNxbDDUGyvfu+x6ndEVIeKqH8WY/BRmstU5C4EXkZPXPobDP4b sM/mgpmUNIjP/tjvROpi17xhJy1p3LEg60meyFdgTJEcDle9Wl/rocrZyDVTbISAGWox 6U+x+ncAsmVwuNSWmzFGlspOOKmHP6tvRAq0cOAF4OMNc1lLFeFTEiaKHXWD1JodvseL LPbg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=JeD3EpNzXXhoaXhgVLNMYaXSgRLZiK5ITLkjWCkG9Uc=; b=zptuD3WG8X4hfRp4bxmUq9oqVXbNntQVodPhOibpTNY5GjQdrY6RhlpGH43EdQefp/ QohyXt5ZHXv9dRywFxqGfh0y8XZ+MB2NdtKAfJoYpeGQsN1KBsmZkdC5EJzJ3UVe5FZ6 Y2H7AnmVqclcR1UY2U/SoUSyYycLx9gRszNsEVDvlzQ/8FLiYblwbdqcAmoX5c5WGpmI R3IfhYCOz5kYPWhzPzh0PCAOZdwUlekBumnB+/IE8z/r4xRXX9Nldu1uU1kodigPS/XI Y4V9ztbj+sJydg211UMvzVphFXEs+4L2PE40Pn3CziVesOUL1YCBxbTPKgrIN29XrH7z 9VYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g23si15420887ejw.663.2021.07.12.10.30.08; Mon, 12 Jul 2021 10:30:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235744AbhGLRbc (ORCPT + 99 others); Mon, 12 Jul 2021 13:31:32 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:52404 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235721AbhGLRbb (ORCPT ); Mon, 12 Jul 2021 13:31:31 -0400 Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 2.1.0) id 570fb929db1951ce; Mon, 12 Jul 2021 19:28:41 +0200 Received: from kreacher.localnet (89-64-82-45.dynamic.chello.pl [89.64.82.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id 65377669C37; Mon, 12 Jul 2021 19:28:40 +0200 (CEST) From: "Rafael J. Wysocki" To: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" , Andy Shevchenko , Linux ACPI , LKML , "Krogerus, Heikki" Subject: [PATCH v1 2/6] ACPI: glue: Change return type of two functions to void Date: Mon, 12 Jul 2021 19:23:37 +0200 Message-ID: <21118671.EfDdHjke4D@kreacher> In-Reply-To: <2780027.e9J7NaK4W3@kreacher> References: <2780027.e9J7NaK4W3@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 89.64.82.45 X-CLIENT-HOSTNAME: 89-64-82-45.dynamic.chello.pl X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvtddruddvgdduudduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkjghfggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpedvjeelgffhiedukedtleekkedvudfggefhgfegjefgueekjeelvefggfdvledutdenucfkphepkeelrdeigedrkedvrdegheenucevlhhushhtvghrufhiiigvpedvnecurfgrrhgrmhepihhnvghtpeekledrieegrdekvddrgeehpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhrtghpthhtohepghhrvghgkhhhsehlihhnuhigfhhouhhnuggrthhiohhnrdhorhhgpdhrtghpthhtoheprhgrfhgrvghlsehkvghrnhgvlhdrohhrghdprhgtphhtthhopegrnhgurhhihidrshhhvghvtghhvghnkhhosehlihhnuhigrdhinhhtvghlrdgtohhmpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehv ghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohephhgvihhkkhhirdhkrhhoghgvrhhusheslhhinhhugidrihhnthgvlhdrtghomh X-DCC--Metrics: v370.home.net.pl 1024; Body=6 Fuz1=6 Fuz2=6 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki Since the return values of acpi_device_notify() and acpi_device_notify_remove() are discarded by their only caller, change their return type to void. No functional impact. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/glue.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) Index: linux-pm/drivers/acpi/glue.c =================================================================== --- linux-pm.orig/drivers/acpi/glue.c +++ linux-pm/drivers/acpi/glue.c @@ -285,7 +285,7 @@ int acpi_unbind_one(struct device *dev) } EXPORT_SYMBOL_GPL(acpi_unbind_one); -static int acpi_device_notify(struct device *dev) +static void acpi_device_notify(struct device *dev) { struct acpi_bus_type *type = acpi_get_bus_type(dev); struct acpi_device *adev; @@ -299,7 +299,6 @@ static int acpi_device_notify(struct dev adev = type->find_companion(dev); if (!adev) { dev_dbg(dev, "ACPI companion not found\n"); - ret = -ENODEV; goto err; } ret = acpi_bind_one(dev, adev); @@ -319,21 +318,19 @@ static int acpi_device_notify(struct dev acpi_handle_debug(ACPI_HANDLE(dev), "Bound to device %s\n", dev_name(dev)); - return 0; + return; err: dev_dbg(dev, "No ACPI support\n"); - - return ret; } -static int acpi_device_notify_remove(struct device *dev) +static void acpi_device_notify_remove(struct device *dev) { struct acpi_device *adev = ACPI_COMPANION(dev); struct acpi_bus_type *type; if (!adev) - return 0; + return; type = acpi_get_bus_type(dev); if (type && type->cleanup) @@ -342,7 +339,6 @@ static int acpi_device_notify_remove(str adev->handler->unbind(dev); acpi_unbind_one(dev); - return 0; } int acpi_platform_notify(struct device *dev, enum kobject_action action)