summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2014-04-10 09:33:25 -0500
committerDenis Kenzior <denkenz@gmail.com>2014-04-10 09:43:41 -0500
commit02138901d302547c5b9e77beb7dec274b04eecb0 (patch)
treed74ad7bde15725f9a9d522c3184f788601a3d62a /src
parent24e87d2580266a490c7a10911e3e8479b43817fa (diff)
downloadofono-02138901d302547c5b9e77beb7dec274b04eecb0.tar.bz2
handsfree: Remove function
No need for one line functions that are only used once
Diffstat (limited to 'src')
-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)