mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
smb: client: remove conditional return with no effect
Both branches of the check return the same value, so the check has no effect. Remove it and return the value directly. This is the result of running the Coccinelle script from scripts/coccinelle/misc/cond_return_no_effect.cocci. Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
6a3e16d60e
commit
aed0714255
|
|
@ -234,11 +234,7 @@ int __init smb1_init_maperror(void)
|
|||
if (rc)
|
||||
return rc;
|
||||
|
||||
rc = mapping_table_ERRSRV_is_sorted();
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
return rc;
|
||||
return mapping_table_ERRSRV_is_sorted();
|
||||
}
|
||||
|
||||
#if IS_ENABLED(CONFIG_SMB1_KUNIT_TESTS)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user