Commit c1f58e9b authored by Thomas Haller's avatar Thomas Haller
Browse files

device: trival refactoring in can_unmanaged_external_down()

Swap order of operands so that the "cheaper" is evaluated first.
parent 03fd18cd
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment