From patchwork Fri Jul 7 13:38:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hexingwei001@208suo.com X-Patchwork-Id: 700779 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3355C001DC for ; Fri, 7 Jul 2023 13:38:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229472AbjGGNii (ORCPT ); Fri, 7 Jul 2023 09:38:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbjGGNig (ORCPT ); Fri, 7 Jul 2023 09:38:36 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3931D2105 for ; Fri, 7 Jul 2023 06:38:34 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4QyDxg1f6qzBJBf7 for ; Fri, 7 Jul 2023 21:38:31 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1688737111; x=1691329112; bh=X19fiyEPm8XRU2mImTwANWy+s8P UCz2HiFt7jLiJe9w=; b=X7QIySP4loYbRhjusHlv7XxS7KTQX8cAuWGW5H9Med8 1aoIX4f+kbWi7FCnuU5yEZuiby+QypQ32v4JG/FdA92S8BGlJfFo1dzjZxcRsGqW gGNRBwE+j21NDvGuhKrplmLcGVbxtcZ3pjHyr8AmkBNLtFR5HkLko7oIwPsWbWGf 9vtZXecy0Z2psT9rIF/fNYjPe/1eVqdmv6mQp72liiERuQ/eEraFFNW4qg1VxAVJ HH5iuB0Tlf8iOWA91tlvKYyDhOC04woq+vz1z8JCATuopuDjoU0BNQj3DHjydoYz dy9fgXIfm+lYKWX87IMlEj3zMUgG0vGgPBbEOMa4Y7Q== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Ojm0v9ctbtBi for ; Fri, 7 Jul 2023 21:38:31 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4QyDxf6QNfzBJBJ2; Fri, 7 Jul 2023 21:38:30 +0800 (CST) MIME-Version: 1.0 Date: Fri, 07 Jul 2023 21:38:30 +0800 From: hexingwei001@208suo.com To: nm@ti.com, ssantosh@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Subject: [PATCH] soc: ti: smartreflex: void function return statements are not generally useful In-Reply-To: <20230707133447.28102-1-panzhiai@cdjrlc.com> References: <20230707133447.28102-1-panzhiai@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: X-Sender: hexingwei001@208suo.com Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org void function omap_sr_shutdown return statements are not generally useful, so deleted the return in function omap_sr_shutdown(). Signed-off-by: Xingwei He --- drivers/soc/ti/smartreflex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) static const struct of_device_id omap_sr_match[] = { diff --git a/drivers/soc/ti/smartreflex.c b/drivers/soc/ti/smartreflex.c index 62b2f1464e46..20abfb0b8f26 100644 --- a/drivers/soc/ti/smartreflex.c +++ b/drivers/soc/ti/smartreflex.c @@ -955,7 +955,7 @@ static void omap_sr_shutdown(struct platform_device *pdev) if (sr_info->autocomp_active) sr_stop_vddautocomp(sr_info); - return; + }