diff mbox series

soc: ti: smartreflex: void function return statements are not generally useful

Message ID b69480b0e73ea567dae00a151410fb6f@208suo.com
State New
Headers show
Series soc: ti: smartreflex: void function return statements are not generally useful | expand

Commit Message

hexingwei001@208suo.com July 7, 2023, 1:38 p.m. UTC
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 <hexingwei001@208suo.com>
---
  drivers/soc/ti/smartreflex.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

  static const struct of_device_id omap_sr_match[] = {
diff mbox series

Patch

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;
+
  }