projects
/
NetworkManager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03fd18c
)
device: trival refactoring in can_unmanaged_external_down()
author
Thomas Haller
<thaller@redhat.com>
Wed, 23 Mar 2016 08:49:39 +0000
(09:49 +0100)
committer
Thomas Haller
<thaller@redhat.com>
Wed, 30 Mar 2016 16:50:52 +0000
(18:50 +0200)
Swap order of operands so that the "cheaper" is evaluated first.
src/devices/nm-device.c
patch
|
blob
|
history
diff --git
a/src/devices/nm-device.c
b/src/devices/nm-device.c
index
529b3cd
..
cae4e68
100644
(file)
--- a/
src/devices/nm-device.c
+++ b/
src/devices/nm-device.c
@@
-1195,7
+1195,8
@@
nm_device_master_release_one_slave (NMDevice *self, NMDevice *slave, gboolean co
static gboolean
can_unmanaged_external_down (NMDevice *self)
{
- return nm_device_is_software (self) && !NM_DEVICE_GET_PRIVATE (self)->is_nm_owned;
+ return !NM_DEVICE_GET_PRIVATE (self)->is_nm_owned
+ && nm_device_is_software (self);
}
static void