diff options
Diffstat (limited to 'pciusb.c')
-rw-r--r-- | pciusb.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -122,8 +122,8 @@ extern int pciusb_find_modules(struct pciusb_entries *entries, const char *fpciu p = buf + offset + 1; q = strchr(p, '\t'); } - if (!e->module || (e->module && strcmp(e->module, "snd-usb-audio"))) - e->module = strcmp(p, "unknown") ? strndup(p,q-p-1) : NULL; + if (strncmp(p, "unknown", q-p-1)) + e->module = strndup(p,q-p-1); ifree(e->text); /* usb.c set it so that we display something when usbtable doesn't refer that hw*/ e->text = strndup(q+2, strlen(q)-4); |