[PATCH v4 2/9] hidclass: Improve error handling in get_device_id