mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-25 21:57:45 +03:00
cleanup: clvmd use else if
When string already matches, skip rest of tests.
This commit is contained in:
parent
2cfe0840d2
commit
c44ede31a3
@ -2352,13 +2352,13 @@ static if_type_t parse_cluster_interface(char *ifname)
|
||||
|
||||
if (!strcmp(ifname, "auto"))
|
||||
iface = IF_AUTO;
|
||||
if (!strcmp(ifname, "cman"))
|
||||
else if (!strcmp(ifname, "cman"))
|
||||
iface = IF_CMAN;
|
||||
if (!strcmp(ifname, "openais"))
|
||||
else if (!strcmp(ifname, "openais"))
|
||||
iface = IF_OPENAIS;
|
||||
if (!strcmp(ifname, "corosync"))
|
||||
else if (!strcmp(ifname, "corosync"))
|
||||
iface = IF_COROSYNC;
|
||||
if (!strcmp(ifname, "singlenode"))
|
||||
else if (!strcmp(ifname, "singlenode"))
|
||||
iface = IF_SINGLENODE;
|
||||
|
||||
return iface;
|
||||
|
Loading…
x
Reference in New Issue
Block a user