* [PATCH 4/4] Fix style issue of bit left-shifting
@ 2009-11-07 7:22 Zhenhua Zhang
2009-11-11 22:27 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Zhenhua Zhang @ 2009-11-07 7:22 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]
Change from 0x1 to 1
---
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 2fed2f4..b1d144b 100644
--- a/drivers/hfpmodem/voicecall.c
+++ b/drivers/hfpmodem/voicecall.c
@@ -138,7 +138,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;
@@ -227,8 +227,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);
}
}
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-11 22:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-07 7:22 [PATCH 4/4] Fix style issue of bit left-shifting Zhenhua Zhang
2009-11-11 22:27 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.