Commit d31a688
nvmf: clean up discovery args struct initialization
Replace literal zero initializers with the proper named constants:
.result = 0 -> removed (zero is the default for unspecified fields)
.lsp = 0 -> .lsp = NVMF_LOG_DISC_LSP_NONE
Also add the missing .timeout = NVME_DEFAULT_IOCTL_TIMEOUT in
_nvmf_discovery() to be consistent with nbft_discovery().
Signed-off-by: Martin Belanger <[email protected]>1 parent 1c9a73c commit d31a688
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1989 | 1989 | | |
1990 | 1990 | | |
1991 | 1991 | | |
1992 | | - | |
1993 | | - | |
| 1992 | + | |
| 1993 | + | |
1994 | 1994 | | |
1995 | 1995 | | |
1996 | 1996 | | |
| |||
2672 | 2672 | | |
2673 | 2673 | | |
2674 | 2674 | | |
2675 | | - | |
2676 | 2675 | | |
2677 | | - | |
| 2676 | + | |
2678 | 2677 | | |
2679 | 2678 | | |
2680 | 2679 | | |
| |||
0 commit comments