Whamcloud - gitweb
LU-17000 lnet: don't assign unused return codes 08/53608/4
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Mon, 8 Jan 2024 09:02:24 +0000 (14:32 +0530)
committerOleg Drokin <green@whamcloud.com>
Sun, 4 Feb 2024 08:30:38 +0000 (08:30 +0000)
commit6826fe0efefc03e22ad723104866b15b59fa68ed
tree380666a8d4b0bc1087e75acf4a6c6c3417ad4cde
parente934646f5ea87cd8a432db0e672c6ea48867ea47
LU-17000 lnet: don't assign unused return codes

In lnet_peer_discovery() return from lnet_peer_ping_failed()
and lnet_peer_push_failed() is unused and return value of
former get quashed without getting used.

Remove rc assignment and cast function to void to make it
clear the return code can be ignored.

Test-Parameters: trivial
CoverityID: 412758 ("Unused Value")
CoverityID: 412759 ("Unused Value")
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: I02d5e883fc02814d5dbe307b78f028703023db52
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53608
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/lnet/peer.c