mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
Fixes bug in fix_paths()
Fixes bug introduced in commit 7d90f569a. Hinted by gcc: libzfs_import.c: In function ‘fix_paths’: libzfs_import.c:602:28: warning: self-comparison always evaluates to true [-Wtautological-compare] if (best->ne_num_labels == best->ne_num_labels && Signed-off-by: Marcel Huber <marcelhuberfoo@gmail.com> Signed-off-by: Chunwei Chen <tuxoko@gmail.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #4632
This commit is contained in:
parent
04bc461062
commit
20c901dc7a
@ -599,7 +599,7 @@ fix_paths(nvlist_t *nv, name_entry_t *names)
|
||||
}
|
||||
|
||||
/* Prefer paths earlier in the search order. */
|
||||
if (best->ne_num_labels == best->ne_num_labels &&
|
||||
if (ne->ne_num_labels == best->ne_num_labels &&
|
||||
ne->ne_order < best->ne_order) {
|
||||
best = ne;
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user