-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fabrics: avoid redundant args in nvme_discovery_log()
nvme_discovery_log() takes nvme_get_log_args as input and then overwrites many of its fields. This leads to wasted code in the caller setting up unused fields. Instead pass nvme_get_discovery_args, which more accurately expresses the possible discovery log arguments. As an added benefit, it also subsumes the other arguments. And nvmf_get_discovery_wargs() can pass its arguments straight through. Signed-off-by: Caleb Sander <[email protected]>
- Loading branch information
1 parent
f6be242
commit 2d631ea
Showing
1 changed file
with
33 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters