[LU-14665] simplify lnet_ni_add_interface Created: 04/May/21 Updated: 02/Jun/21 Resolved: 02/Jun/21 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.15.0 |
| Type: | Improvement | Priority: | Trivial |
| Reporter: | Olaf Faaland | Assignee: | Olaf Faaland |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | llnl, llnlfixready | ||
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
The function increments a counter if (ni->ni_interface != NULL) and then checks the counter to decide whether to exit with an error. The counter isn't used anywhere else. The comment is also next to the wrong code. |
| Comments |
| Comment by Gerrit Updater [ 04/May/21 ] |
|
Olaf Faaland-LLNL (faaland1@llnl.gov) uploaded a new patch: https://review.whamcloud.com/43525 |
| Comment by Gerrit Updater [ 02/Jun/21 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43525/ |
| Comment by Peter Jones [ 02/Jun/21 ] |
|
landed for 2.15 |