diff options
author | Adam Jackson <ajax@redhat.com> | 2017-01-24 09:43:43 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-01-24 09:43:43 -0500 |
commit | 74d39213b4cf89fdaa6f14913d0150852a1090f2 (patch) | |
tree | b6d88149f88dfba97f01b7935415b8b024b47d3c | |
parent | 95fcc10d962f3ff682cfb8c1bbfd3f14db167a13 (diff) |
Remove call to LoaderGetOS
If you're not using Linux, this isn't likely to build let alone run. And
if it _does_ build on non-Linux, it's probably because someone went out
of their way to try to make it work.
Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r-- | src/v4l.c | 18 |
1 files changed, 2 insertions, 16 deletions
@@ -92,22 +92,8 @@ v4lSetup(pointer module, pointer opts, int *errmaj, int *errmin) } setupDone = TRUE; - - /* Check that we're being loaded on a Linux system */ - LoaderGetOS(&osname, NULL, NULL, NULL); - if (!osname || strcmp(osname, "linux") != 0) { - if (errmaj) - *errmaj = LDR_BADOS; - if (errmin) - *errmin = 0; - return NULL; - } else { - /* OK */ - - xf86AddDriver (&V4L, module, 0); - - return (pointer)1; - } + xf86AddDriver (&V4L, module, 0); + return (pointer)1; } #else |