summaryrefslogtreecommitdiffstats
path: root/drivers/ifxmodem
diff options
context:
space:
mode:
authorJeevaka Badrappan <jeevaka.badrappan@elektrobit.com>2011-02-05 06:29:08 -0800
committerMarcel Holtmann <marcel@holtmann.org>2011-02-05 07:04:53 -0800
commit021e8836b8d8aab4529562c5f5685046dc65bd2c (patch)
treeb234f1b948db110590f9dd2411c89aa6ae2b4b52 /drivers/ifxmodem
parenta4c37333145b65e5ff7b6c9727fd2c5d673152b0 (diff)
downloadofono-021e8836b8d8aab4529562c5f5685046dc65bd2c.tar.bz2
ifxmodem: M16 coding style fix
Diffstat (limited to 'drivers/ifxmodem')
-rw-r--r--drivers/ifxmodem/voicecall.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/ifxmodem/voicecall.c b/drivers/ifxmodem/voicecall.c
index 5ff3bcc2..f66815a6 100644
--- a/drivers/ifxmodem/voicecall.c
+++ b/drivers/ifxmodem/voicecall.c
@@ -160,7 +160,7 @@ static void xcallstat_notify(GAtResult *result, gpointer user_data)
if (status == CALL_STATUS_DISCONNECTED) {
enum ofono_disconnect_reason r;
- if (vd->local_release & (0x1 << call->id))
+ if (vd->local_release & (1 << call->id))
r = OFONO_DISCONNECT_REASON_LOCAL_HANGUP;
else
r = OFONO_DISCONNECT_REASON_REMOTE_HANGUP;
@@ -168,7 +168,7 @@ static void xcallstat_notify(GAtResult *result, gpointer user_data)
if (call->type == 0)
ofono_voicecall_disconnected(vc, call->id, r, NULL);
- vd->local_release &= ~(0x1 << call->id);
+ vd->local_release &= ~(1 << call->id);
vd->calls = g_slist_remove(vd->calls, call);
g_free(call);
@@ -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);
}
}
@@ -245,7 +245,7 @@ static void release_id_cb(gboolean ok, GAtResult *result,
decode_at_error(&error, g_at_result_final_response(result));
if (ok)
- vd->local_release |= 0x1 << req->id;
+ vd->local_release |= 1 << req->id;
req->cb(&error, req->data);
}