From def77f76530c2df8436dcb2ef51b3747ff3e0233 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 7 Jul 2015 11:31:09 +0200 Subject: [PATCH] n900: Fix compiler warning with logical expression MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/n900.c b/plugins/n900.c index 44e2e75d..bfce0901 100644 --- a/plugins/n900.c +++ b/plugins/n900.c @@ -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);