summaryrefslogtreecommitdiffstats
path: root/pciusb.c
diff options
context:
space:
mode:
Diffstat (limited to 'pciusb.c')
-rw-r--r--pciusb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pciusb.c b/pciusb.c
index 31953b8..eda4ca6 100644
--- a/pciusb.c
+++ b/pciusb.c
@@ -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);