summaryrefslogtreecommitdiffstats
path: root/src/handsfree.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/handsfree.c')
-rw-r--r--src/handsfree.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/handsfree.c b/src/handsfree.c
index 5997d7bb..86ca46c3 100644
--- a/src/handsfree.c
+++ b/src/handsfree.c
@@ -181,11 +181,6 @@ void ofono_handsfree_battchg_notify(struct ofono_handsfree *hf,
&level);
}
-static gboolean ofono_handsfree_is_busy(struct ofono_handsfree *hf)
-{
- return hf->pending ? TRUE : FALSE;
-}
-
static void append_subscriber_numbers(GSList *subscriber_numbers,
DBusMessageIter *iter)
{
@@ -321,7 +316,7 @@ static DBusMessage *handsfree_get_properties(DBusConnection *conn,
{
struct ofono_handsfree *hf = data;
- if (ofono_handsfree_is_busy(hf))
+ if (hf->pending != NULL)
return __ofono_error_busy(msg);
if (hf->flags & HANDSFREE_FLAG_CACHED)