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:
372edf4
)
Style: Use 1 instead of 0x1
author
Zhenhua Zhang
<zhenhua.zhang@intel.com>
Sat, 7 Nov 2009 07:22:59 +0000
(15:22 +0800)
committer
Denis Kenzior
<denkenz@gmail.com>
Wed, 11 Nov 2009 22:27:26 +0000
(16:27 -0600)
drivers/hfpmodem/voicecall.c
patch
|
blob
|
history
diff --git
a/drivers/hfpmodem/voicecall.c
b/drivers/hfpmodem/voicecall.c
index
15a8b49
..
8847985
100644
(file)
--- a/
drivers/hfpmodem/voicecall.c
+++ b/
drivers/hfpmodem/voicecall.c
@@
-124,8
+124,8
@@
static void generic_cb(gboolean ok, GAtResult *result, gpointer user_data)
for (l = vd->calls; l; l = l->next) {
call = l->data;
- if (req->affected_types & (
0x
1 << call->status))
- vd->local_release |= (
0x
1 << call->id);
+ if (req->affected_types & (1 << call->status))
+ vd->local_release |= (1 << call->id);
}
}
@@
-327,7
+327,7
@@
static void release_call(struct ofono_voicecall *vc, struct ofono_call *call)
if (call == NULL)
return;
- if (vd->local_release & (
0x
1 << call->id))
+ if (vd->local_release & (1 << call->id))
reason = OFONO_DISCONNECT_REASON_LOCAL_HANGUP;
else
reason = OFONO_DISCONNECT_REASON_REMOTE_HANGUP;