diff options
Diffstat (limited to 'binding/bluetooth-util.c')
-rw-r--r-- | binding/bluetooth-util.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/binding/bluetooth-util.c b/binding/bluetooth-util.c index 963af82..e8a0781 100644 --- a/binding/bluetooth-util.c +++ b/binding/bluetooth-util.c @@ -1046,10 +1046,8 @@ gchar *return_bluez_path(afb_req_t request) { adapter = adapter ? adapter : BLUEZ_DEFAULT_ADAPTER; device = afb_req_value(request, "device"); - if (!device) { - afb_req_fail(request, "failed", "No device parameter"); + if (!device) return NULL; - } tmp = device; |