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: 13304898 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D70D5EB64D9 for ; Fri, 7 Jul 2023 13:39:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:Cc:To:From :Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1lS+7Xwo9EB4LezNRp48HdQ2uZfYsIQL/7iD1GlrW50=; b=EmuR+Aa7bFTCkAuts8Ech54pK/ souR6LfM19c3TrPTKIbqPknPppOSTKlhsG7oQ9NswHizs+lPLLDiQfjyOLIsMni0/WY/xLLcZ9uf1 Qf2/AozPpk8ll7fuPMhkNpP4YFXqFRRcLLO7DuX53kc11JM2rrIvh8TZeb44sXSaKr+ISL70q/mKa OTiZiy9bZkGXoIm092a5A12tONn/X2FZDN8DgEdrU4IPz/+CYnfPuL3f2F+O7rc99bXK0+fu17Rx2 Tt9KBODBeSiLeZSXJTw0buRgwWwKnny61Fl9sahGAVLc8uPzeRHDkR8pFMd9PnGf/iMmGdxMxoUU+ VLAPfBxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qHlfw-004kQs-24; Fri, 07 Jul 2023 13:39:08 +0000 Received: from [183.242.55.162] (helo=mail.208.org) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qHlfs-004kMh-2i for linux-arm-kernel@lists.infradead.org; Fri, 07 Jul 2023 13:39:06 +0000 Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4QyDxg1ph3zBJBfj 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 zqCB1RzWcEyj 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230707_063905_106625_470E1AD8 X-CRM114-Status: GOOD ( 11.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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; + }