Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
3
-
9223372036854775807
Description
Running smatch I see these three warnings in recently introduced nidstrings.c:
/home/green/smt/git/lustre-release/lnet/lnet/nidstrings.c:360 libcfs_namenum2netstrfns() warn: always true condition '(nf->nf_type >= 0) => (0-u32max >= 0)' /home/green/smt/git/lustre-release/lnet/lnet/nidstrings.c:373 libcfs_name2netstrfns() warn: always true condition '(libcfs_netstrfns[i]->nf_type >= 0) => (0-u32max >= 0)' /home/green/smt/git/lustre-release/lnet/lnet/nidstrings.c:487 libcfs_str2net_internal() warn: always true condition '(nf->nf_type >= 0) => (0-u32max >= 0)'