This patch fixes Logically dead code check reported
by coverity run.
CoverityID: 404752 ("Logically dead code")
Test-Parameters: trivial testlist=sanity-lnet
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: I5a435324a19e04805c2a7c555ac2a0c1433ce2d0
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52950
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
while ((nid = strsep(&nidstr, "@")) != NULL) {
char *tmp = NULL, *tmp2 = NULL, *end = NULL;
- if (!nid) {
- *errmsg = "Unable to parse nidlist: no proper NID string";
- return -ENOENT;
- }
-
tmp = strchr(nid, '[');
tmp2 = strchr(nid, ']');