fbdevhw: Remove pointless OS check, this never gets built on non-Linux

This commit is contained in:
Adam Jackson 2009-07-16 10:51:53 -04:00
parent 892c93553a
commit 087745b809

View File

@ -59,20 +59,7 @@ _X_EXPORT XF86ModuleData fbdevhwModuleData = {
static pointer
fbdevhwSetup(pointer module, pointer opts, int *errmaj, int *errmin)
{
const char *osname;
/* 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 */
return (pointer)1;
}
return (pointer)1;
}
#include <fcntl.h>