mirror of
https://github.com/torvalds/linux.git
synced 2026-09-11 20:13:02 +02:00
RAS/AMD/ATL: 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: Borislav Petkov (AMD) <bp@alien8.de> Link: https://patch.msgid.link/20260723184538.3888637-28-ekffu200098@gmail.com
This commit is contained in:
parent
4c3da04827
commit
0c4775d3a7
|
|
@ -771,9 +771,5 @@ int get_address_map(struct addr_ctx *ctx)
|
|||
|
||||
dump_address_map(&ctx->map);
|
||||
|
||||
ret = validate_address_map(ctx);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return ret;
|
||||
return validate_address_map(ctx);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user