Avoid further feature identification if interface is missing

This commit is contained in:
Christoffer Sandberg 2022-12-23 09:52:20 +01:00
parent 88363ec030
commit e8eeb35028
No known key found for this signature in database
GPG key ID: BF563F71B6C7A96D

View file

@ -153,9 +153,12 @@ void uw_id_tdp(void)
static u32 uniwill_identify(void)
{
u32 result = uniwill_get_active_interface_id(NULL) == 0 ? 1 : 0;
if (result) {
uw_feats = uniwill_get_device_features();
uw_id_tdp();
return uniwill_get_active_interface_id(NULL) == 0 ? 1 : 0;
}
return result;
}
/*static int fop_open(struct inode *inode, struct file *file)