wireguard: allowedips: Fix useless call issue
Subsystems (3)
PATCH 1/1 wireguard: allowedips: Fix useless call issue
This commit fixes a useless call issue detected by Coverity (CID 1508092). The call to horrible_allowedips_lookup_v4 is unnecessary as its return value is never checked.
Signed-off-by Dheeraj Reddy Jonnalagadda <[email protected]>
--- drivers/net/wireguard/selftest/allowedips.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/wireguard/selftest/allowedips.c +0 -1
@@ -383,7 +383,6 @@ static __init bool randomized_test(void)for (i =0 ; i <NUM_QUERIES ; ++i) {get_random_bytes (ip,4 );if (lookup (t.root4,32 , ip) !=horrible_allowedips_lookup_v4 (&h, (struct in_addr *)ip)) { -horrible_allowedips_lookup_v4 (&h, (struct in_addr *)ip);pr_err ("allowedips random v4 self-test: FAIL\n" ); goto free; }
Signature · 1 line
2.34.1
Quoted 4 lines · Dheeraj Reddy Jonnalagadda
This commit fixes a useless call issue detected by Coverity (CID 1508092). The call to
horrible_allowedips_lookup_v4is unnecessary as its return value is never checked.
Applied to the wireguard tree, thanks.