projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2b67fa
)
isiusb: Fix compiler warning with logical expression
author
Marcel Holtmann
<marcel@holtmann.org>
Tue, 7 Jul 2015 09:30:20 +0000
(11:30 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 7 Jul 2015 09:35:54 +0000
(11:35 +0200)
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
patch
|
blob
|
history
diff --git
a/plugins/isiusb.c
b/plugins/isiusb.c
index 82d2cc5672b657f001c78b43671573584a93d28b..920585641b68387cb6899e61114423f72f4f76ff 100644
(file)
--- 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);