diff options
author | David Nusinow <dnusinow@debian.org> | 2007-10-11 21:27:07 -0400 |
---|---|---|
committer | David Nusinow <dnusinow@debian.org> | 2007-10-11 21:27:07 -0400 |
commit | e3e12221111886c4063d2da5d70d3830c56d39e2 (patch) | |
tree | 2757fd069715d726f47854968fb11f2f8e0f5ed5 /hw/xfree86/parser/Device.c | |
parent | 28ef7f59416677be380561709197b04df0479bef (diff) |
Don't bother validating the Device section of the conf file
All the previous tests can now be recovered from if not specified.
Diffstat (limited to 'hw/xfree86/parser/Device.c')
-rw-r--r-- | hw/xfree86/parser/Device.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/hw/xfree86/parser/Device.c b/hw/xfree86/parser/Device.c index 6ad5601b5..216789fc1 100644 --- a/hw/xfree86/parser/Device.c +++ b/hw/xfree86/parser/Device.c @@ -357,26 +357,6 @@ xf86freeDeviceList (XF86ConfDevicePtr ptr) } } -int -xf86validateDevice (XF86ConfigPtr p) -{ - XF86ConfDevicePtr device = p->conf_device_lst; - - if (!device) { - xf86validationError ("At least one Device section is required."); - return (FALSE); - } - - while (device) { - if (!device->dev_driver) { - xf86validationError (UNDEFINED_DRIVER_MSG, device->dev_identifier); - return (FALSE); - } - device = device->list.next; - } - return (TRUE); -} - XF86ConfDevicePtr xf86findDevice (const char *ident, XF86ConfDevicePtr p) { |