]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
powerpc/ps3: Drop redundant result assignment
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Tue, 17 Mar 2026 13:08:24 +0000 (14:08 +0100)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Wed, 6 May 2026 02:19:19 +0000 (07:49 +0530)
Return value of ps3_start_probe_thread() is not used, so code can be
simplified to fix W=1 clang warnings:

  arch/powerpc/platforms/ps3/device-init.c:953:6: error: variable 'result' set but not used [-Werror,-Wunused-but-set-variable]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260317130823.240279-3-krzysztof.kozlowski@oss.qualcomm.com
arch/powerpc/platforms/ps3/device-init.c

index 12c473768c397d07ae05f96e240410860344cfa9..9109c218a060a2bf5eb8f0561d0dccf98fb45229 100644 (file)
@@ -950,8 +950,6 @@ static int __init ps3_start_probe_thread(enum ps3_bus_type bus_type)
 
 static int __init ps3_register_devices(void)
 {
-       int result;
-
        if (!firmware_has_feature(FW_FEATURE_PS3_LV1))
                return -ENODEV;
 
@@ -959,7 +957,7 @@ static int __init ps3_register_devices(void)
 
        /* ps3_repository_dump_bus_info(); */
 
-       result = ps3_start_probe_thread(PS3_BUS_TYPE_STORAGE);
+       ps3_start_probe_thread(PS3_BUS_TYPE_STORAGE);
 
        ps3_register_vuart_devices();