X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ls-kernel.c;h=ecacd0e65dce62080ef064797e7a60f7349fe780;hb=44c6c7fcfe0f9219447ac78e3f386e3223328149;hp=78b70f19e1f5eeef68a901b5f59476d2bae3f5c0;hpb=b069b79a29feb278ff3314579f33878d184d5509;p=pciutils.git diff --git a/ls-kernel.c b/ls-kernel.c index 78b70f1..ecacd0e 100644 --- a/ls-kernel.c +++ b/ls-kernel.c @@ -29,13 +29,7 @@ show_kernel_init(void) if (show_kernel_inited >= 0) return show_kernel_inited; - struct utsname uts; - if (uname(&uts) < 0) - die("uname() failed: %m"); - char *name = alloca(64 + strlen(uts.release)); - sprintf(name, "/lib/modules/%s", uts.release); - - kmod_ctx = kmod_new(name, NULL); + kmod_ctx = kmod_new(NULL, NULL); if (!kmod_ctx) { fprintf(stderr, "lspci: Unable to initialize libkmod context\n");