]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
misc: apds990x: Drop superfluous return statement
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 13 Aug 2025 13:05:15 +0000 (15:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Aug 2025 10:37:13 +0000 (12:37 +0200)
Drop a return statement that immediately follows another return
statement, and thus is never executed.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/673e667895603b1a1b1ae8ec89e333ac15f4412b.1755090287.git.geert+renesas@glider.be
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/apds990x.c

index e7d73c972f65dc42520ac49c0d414b89fbccd88a..58946c4ff1a5af957b6f0d903d9c03fbee13029e 100644 (file)
@@ -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,