From: Marcel Holtmann Date: Tue, 7 Jul 2015 09:31:09 +0000 (+0200) Subject: n900: Fix compiler warning with logical expression X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=def77f76530c2df8436dcb2ef51b3747ff3e0233;p=platform%2Fupstream%2Fofono.git n900: Fix compiler warning with logical expression 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) ^ --- 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);