[LU-13755] no effect assignment in sptlrpc_lproc_init() Created: 07/Jul/20 Updated: 07/Jul/20 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Oleg Drokin | Assignee: | WC Triage |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
Seems to be added by 218fc688c11f081881b2cc1c1632ceaf9ec77a77 " + sptlrpc_lprocfs_dir = lprocfs_register("sptlrpc", proc_lustre_root,
+ NULL, NULL);
+ if (IS_ERR_OR_NULL(sptlrpc_lprocfs_dir)) {
+ rc = PTR_ERR(sptlrpc_lprocfs_dir);
+ rc = sptlrpc_lprocfs_dir ? PTR_ERR(sptlrpc_lprocfs_dir)
+ : -ENOMEM;
+ sptlrpc_lprocfs_dir = NULL;
+ }
that first 'rc =' line does not make any sense, does it? |