Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147696130
D27489.id80369.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
899 B
Referenced Files
None
Subscribers
None
D27489.id80369.diff
View Options
Index: sys/dev/atkbdc/atkbdc.c
===================================================================
--- sys/dev/atkbdc/atkbdc.c
+++ sys/dev/atkbdc/atkbdc.c
@@ -119,7 +119,6 @@
KBDC_QUIRK_RESET_AFTER_PROBE | KBDC_QUIRK_SETLEDS_ON_INIT},
/* KBDC hangs on Lenovo X120e and X121e after disabling AUX MUX */
{NULL, "LENOVO", NULL, KBDC_QUIRK_DISABLE_MUX_PROBE},
- {NULL, NULL, NULL, 0}
};
#define QUIRK_STR_MATCH(s1, s2) (s1 == NULL || \
@@ -133,8 +132,7 @@
char* maker = kern_getenv("smbios.system.maker");
char* product = kern_getenv("smbios.system.product");
- for (i=0; quirks[i].bios_vendor != NULL || quirks[i].maker != NULL ||
- quirks[i].product != NULL; ++i)
+ for (i = 0; i < nitems(quirks); i++)
if (QUIRK_STR_MATCH(quirks[i].bios_vendor, bios_vendor) &&
QUIRK_STR_MATCH(quirks[i].maker, maker) &&
QUIRK_STR_MATCH(quirks[i].product, product))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 14, 12:06 AM (6 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29642788
Default Alt Text
D27489.id80369.diff (899 B)
Attached To
Mode
D27489: atkbd(4): Just use nitems() for quirk enumeration
Attached
Detach File
Event Timeline
Log In to Comment