diff options
author | Zhenhua Zhang <zhenhua.zhang@intel.com> | 2009-11-07 15:22:59 +0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-11-11 16:27:26 -0600 |
commit | c7fd6d13b6e77e1b3cf57e2571a922d5cf8a9c9d (patch) | |
tree | 0cf18e9f1e671a5de52d168f55589a45cd707ca8 | |
parent | 372edf4f21d151063483c670f0dd20a2963a33fe (diff) | |
download | ofono-c7fd6d13b6e77e1b3cf57e2571a922d5cf8a9c9d.tar.bz2 |
Style: Use 1 instead of 0x1
-rw-r--r-- | drivers/hfpmodem/voicecall.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c index 15a8b49b..8847985e 100644 --- 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 & (0x1 << call->status)) - vd->local_release |= (0x1 << 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 & (0x1 << call->id)) + if (vd->local_release & (1 << call->id)) reason = OFONO_DISCONNECT_REASON_LOCAL_HANGUP; else reason = OFONO_DISCONNECT_REASON_REMOTE_HANGUP; |