Commit 5b5acce
committed
tree: simplifiy nvme_subsystem_lookup_namespace()
The list of namespaces needs to be considered static, and should
only be changed on a full rescan. So simplify the function to just
return the corresponding namespace entry from the topology tree.
Signed-off-by: Hannes Reinecke <[email protected]>1 parent f603510 commit 5b5acce
1 file changed
Lines changed: 4 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1913 | 1913 | | |
1914 | 1914 | | |
1915 | 1915 | | |
1916 | | - | |
1917 | 1916 | | |
1918 | | - | |
1919 | | - | |
1920 | 1917 | | |
1921 | | - | |
1922 | | - | |
1923 | | - | |
1924 | | - | |
1925 | | - | |
1926 | | - | |
1927 | | - | |
1928 | | - | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
1929 | 1921 | | |
1930 | | - | |
1931 | | - | |
1932 | | - | |
1933 | | - | |
| 1922 | + | |
1934 | 1923 | | |
0 commit comments