From a2acb227fdf234ea63c98aed78ca8425f94d0736 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 7 Jul 2015 11:31:53 +0200 Subject: u8500: Fix compiler warning with logical expression MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CC plugins/u8500.o plugins/u8500.c: In function ‘reachable_cb’: plugins/u8500.c:235: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/u8500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/u8500.c b/plugins/u8500.c index 73ff4fa2..59ec70bd 100644 --- a/plugins/u8500.c +++ b/plugins/u8500.c @@ -232,7 +232,7 @@ static void reachable_cb(const GIsiMessage *msg, void *data) struct ofono_modem *om = data; struct isi_data *isi = ofono_modem_get_data(om); - if (!g_isi_msg_error(msg) < 0) + if (g_isi_msg_error(msg) < 0) return; ISI_RESOURCE_DBG(msg); -- cgit v1.2.3