n900: Fix compiler warning with logical expression
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 7 Jul 2015 09:31:09 +0000 (11:31 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 7 Jul 2015 09:35:54 +0000 (11:35 +0200)
  CC       plugins/n900.o
plugins/n900.c: In function ‘mtc_reachable_cb’:
plugins/n900.c:241:28: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
  if (!g_isi_msg_error(msg) < 0)
                            ^

plugins/n900.c

index 44e2e75df3d97c6520bbeefb62d7f73d9feb8fa8..bfce09011a059778a8ff08f008a7e1167a8730ec 100644 (file)
@@ -238,7 +238,7 @@ static void mtc_reachable_cb(const GIsiMessage *msg, void *data)
        struct ofono_modem *modem = data;
        struct isi_data *isi = ofono_modem_get_data(modem);
 
-       if (!g_isi_msg_error(msg) < 0)
+       if (g_isi_msg_error(msg) < 0)
                return;
 
        ISI_RESOURCE_DBG(msg);