Skip to content

Commit

Permalink
Remove unneeded property type check
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 31, 2023
1 parent cddcc4f commit 4644ac9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/hidapi/mac/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,6 @@ static int get_string_property(IOHIDDeviceRef device, CFStringRef prop, wchar_t
if (!len)
return 0;

if (CFGetTypeID(prop) != CFStringGetTypeID())
return 0;

str = (CFStringRef) IOHIDDeviceGetProperty(device, prop);

buf[0] = 0;
Expand Down

0 comments on commit 4644ac9

Please sign in to comment.