OSDN Git Service

input: Simplify code since UUID is known
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Fri, 26 Apr 2013 06:16:59 +0000 (08:16 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 26 Apr 2013 07:12:01 +0000 (10:12 +0300)
The UUID in this code path is fixed so trivially use it instead of
using the provided probe parameter.

profiles/input/manager.c

index d30ba67..8bbf768 100644 (file)
@@ -59,7 +59,7 @@ static int hid_device_probe(struct btd_profile *p, struct btd_device *device,
                                                                GSList *uuids)
 {
        const char *path = device_get_path(device);
-       const sdp_record_t *rec = btd_device_get_record(device, uuids->data);
+       const sdp_record_t *rec = btd_device_get_record(device, HID_UUID);
 
        DBG("path %s", path);