e/connman: Check for the correct messages.

Checking two times the same message does not make any sense. The only logical
thing seems to be checking for the properties message here. Leaving the wifi
properties message out as not every setup has wifi. At least on my desktop
here I don't have /net/connman/technology/wifi so we should not fail without
it.

Dermarchi or Bdilly please cry or fix if this is not as intended.
(Brought to you by double_condition_check.cocci)

SVN revision: 77440
This commit is contained in:
Stefan Schmidt 2012-10-04 14:56:17 +00:00
parent 5ca309e0ad
commit 433f1cb90b
1 changed files with 1 additions and 1 deletions

View File

@ -910,7 +910,7 @@ static struct Connman_Manager *_manager_new(void)
"/net/connman/technology/wifi",
CONNMAN_TECHNOLOGY_IFACE,
"GetProperties");
if (!msg_services || !msg_services)
if (!msg_services || !msg_props)
{
ERR("Could not create D-Bus messages");
return NULL;