Whamcloud - gitweb
LU-17000 coverity: Fix Logically dead code under lnetctl.c 21/52921/6
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Wed, 1 Nov 2023 10:44:08 +0000 (16:14 +0530)
committerOleg Drokin <green@whamcloud.com>
Sat, 18 Nov 2023 21:46:39 +0000 (21:46 +0000)
commit4d95238de1b9021afaaf337ca60e3335e99881a6
tree9015e3addedb2a2adadf2f35b24001ef45b74b1c
parent6e0652b3e58e14960bdcab0065024ec24b27b813
LU-17000 coverity: Fix Logically dead code under lnetctl.c

This patch fixes Logically dead code reported by
coverity run. This uncovers the missing call
to lustre_lnet_list_peer() to list peer under
old API.

CoverityID: 404746 ("Logically dead code")

Test-Parameters: trivial testlist=sanity-lnet
Fixes: f0be00678c ("LU-9680 lnet: collect data about peer_ni by using Netlink")
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: I0659ce403110118697fb8c88ade70f1695509382
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52921
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/utils/lnetctl.c