projects
/
oweals
/
uqmi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1128b1f
)
suppress error callbacks if requested
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 17 Feb 2013 17:52:19 +0000
(18:52 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 17 Feb 2013 17:52:19 +0000
(18:52 +0100)
dev.c
patch
|
blob
|
history
uqmi.h
patch
|
blob
|
history
diff --git
a/dev.c
b/dev.c
index 486230a4b7b1a46884fd97d558fc54b49f1c2ca6..ed9d60fb16c089ee5e3e21d83fbd52333990d838 100644
(file)
--- a/
dev.c
+++ b/
dev.c
@@
-58,7
+58,7
@@
static void __qmi_request_complete(struct qmi_dev *qmi, struct qmi_request *req,
if (req->ret)
msg = NULL;
- if (req->cb)
+ if (req->cb
&& (msg || !req->no_error_cb)
)
req->cb(qmi, req, msg);
if (req->complete) {
diff --git
a/uqmi.h
b/uqmi.h
index a404da57c6396371124c40555780df5c743a5270..2f068905e1605fb8cb7f3cf6b4dcb70dcfb665a9 100644
(file)
--- a/
uqmi.h
+++ b/
uqmi.h
@@
-70,6
+70,7
@@
struct qmi_request {
bool *complete;
bool pending;
+ bool no_error_cb;
uint8_t service;
uint16_t tid;
int ret;