From c3af639874f208268c00fedcdee4321b8d540bc6 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 7 Jul 2015 11:30:20 +0200 Subject: [PATCH] isiusb: Fix compiler warning with logical expression MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CC plugins/isiusb.o plugins/isiusb.c: In function ‘reachable_cb’: plugins/isiusb.c:207: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/isiusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/isiusb.c b/plugins/isiusb.c index 82d2cc56..92058564 100644 --- a/plugins/isiusb.c +++ b/plugins/isiusb.c @@ -204,7 +204,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);