1
0
forked from drath/libratbag

hidraw: use the struct we already have a pointer to

No functional changes

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2015-10-14 10:07:52 +10:00
parent 05cd108059
commit 48549e6f6f

View File

@@ -56,12 +56,12 @@ ratbag_hidraw_parse_report_descriptor(struct ratbag_device *device)
hidraw->num_reports = 0;
rc = ioctl(device->hidraw.fd, HIDIOCGRDESCSIZE, &desc_size);
rc = ioctl(hidraw->fd, HIDIOCGRDESCSIZE, &desc_size);
if (rc < 0)
return rc;
report_desc.size = desc_size;
rc = ioctl(device->hidraw.fd, HIDIOCGRDESC, &report_desc);
rc = ioctl(hidraw->fd, HIDIOCGRDESC, &report_desc);
if (rc < 0)
return rc;