[PATCH v9 3/7] hidclass: Improve error handling in get_device_id