Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-17000 coverity: Fix Logically dead code under liblnetconfig.c
[fs/lustre-release.git]
/
lnet
/
utils
/
lnetconfig
/
liblnetconfig.c
diff --git
a/lnet/utils/lnetconfig/liblnetconfig.c
b/lnet/utils/lnetconfig/liblnetconfig.c
index
24215be
..
c759f7b
100644
(file)
--- a/
lnet/utils/lnetconfig/liblnetconfig.c
+++ b/
lnet/utils/lnetconfig/liblnetconfig.c
@@
-1740,11
+1740,6
@@
int lustre_lnet_parse_nid_range(struct nid_node *head, char *nidstr,
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, ']');