[<prev] [next>] [day] [month] [year] [list]
Message-ID: <673e667895603b1a1b1ae8ec89e333ac15f4412b.1755090287.git.geert+renesas@glider.be>
Date: Wed, 13 Aug 2025 15:05:15 +0200
From: Geert Uytterhoeven <geert+renesas@...der.be>
To: Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-kernel@...r.kernel.org,
Geert Uytterhoeven <geert+renesas@...der.be>
Subject: [PATCH] misc: apds990x: Drop superfluous return statement
Drop a return statement that immediately follows another return
statement, and thus is never executed.
Signed-off-by: Geert Uytterhoeven <geert+renesas@...der.be>
---
drivers/misc/apds990x.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/misc/apds990x.c b/drivers/misc/apds990x.c
index e7d73c972f65dc42..58946c4ff1a5af95 100644
--- a/drivers/misc/apds990x.c
+++ b/drivers/misc/apds990x.c
@@ -984,7 +984,6 @@ static ssize_t apds990x_power_state_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
return sprintf(buf, "%d\n", !pm_runtime_suspended(dev));
- return 0;
}
static ssize_t apds990x_power_state_store(struct device *dev,
--
2.43.0
Powered by blists - more mailing lists