OSDN Git Service

Don't bother with the source value for input devices
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 14 Sep 2008 17:13:43 +0000 (19:13 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 14 Sep 2008 17:13:43 +0000 (19:13 +0200)
input/device.c

index 388fe9e..292bb77 100644 (file)
@@ -606,7 +606,6 @@ static int hidp_add_connection(const struct input_device *idev,
        struct fake_hid *fake_hid;
        struct fake_input *fake;
        sdp_record_t *rec;
-       uint16_t source;
        char src_addr[18], dst_addr[18];
        int err;
 
@@ -629,7 +628,7 @@ static int hidp_add_connection(const struct input_device *idev,
        extract_hid_record(rec, req);
        sdp_record_free(rec);
 
-       read_device_id(src_addr, dst_addr, &source,
+       read_device_id(src_addr, dst_addr, NULL,
                                &req->vendor, &req->product, &req->version);
 
        fake_hid = get_fake_hid(req->vendor, req->product);