Skip to content

Commit 8333e49

Browse files
krzkmaddy-kerneldev
authored andcommitted
powerpc/ps3: Drop redundant result assignment
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
1 parent 60c7136 commit 8333e49

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

arch/powerpc/platforms/ps3/device-init.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -950,16 +950,14 @@ static int __init ps3_start_probe_thread(enum ps3_bus_type bus_type)
950950

951951
static int __init ps3_register_devices(void)
952952
{
953-
int result;
954-
955953
if (!firmware_has_feature(FW_FEATURE_PS3_LV1))
956954
return -ENODEV;
957955

958956
pr_debug(" -> %s:%d\n", __func__, __LINE__);
959957

960958
/* ps3_repository_dump_bus_info(); */
961959

962-
result = ps3_start_probe_thread(PS3_BUS_TYPE_STORAGE);
960+
ps3_start_probe_thread(PS3_BUS_TYPE_STORAGE);
963961

964962
ps3_register_vuart_devices();
965963

0 commit comments

Comments
 (0)