No need for one line functions that are only used once
&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)
{
{
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)