Author: hselasky
Date: Sat Mar 17 16:40:15 2012
New Revision: 233090
URL: http://svn.freebsd.org/changeset/base/233090

Log:
  The UMS module is now loaded by rules in /etc/devd/usb.conf which
  are executed by devd. Remove duplicate kldload.
  
  Reported by:  joel @
  MFC after:    1 week

Modified:
  head/usr.sbin/moused/moused.c

Modified: head/usr.sbin/moused/moused.c
==============================================================================
--- head/usr.sbin/moused/moused.c       Sat Mar 17 12:36:45 2012        
(r233089)
+++ head/usr.sbin/moused/moused.c       Sat Mar 17 16:40:15 2012        
(r233090)
@@ -564,8 +564,6 @@ static void mremote_clientchg(int add);
 static int     kidspad(u_char rxc, mousestatus_t *act);
 static int     gtco_digipad(u_char, mousestatus_t *);
 
-static int     usbmodule(void);
-
 int
 main(int argc, char *argv[])
 {
@@ -880,8 +878,7 @@ main(int argc, char *argv[])
 
     retry = 1;
     if (strncmp(rodent.portname, "/dev/ums", 8) == 0) {
-       if (usbmodule() != 0)
-           retry = 5;
+       retry = 5;
     }
 
     for (;;) {
@@ -953,12 +950,6 @@ main(int argc, char *argv[])
     exit(0);
 }
 
-static int
-usbmodule(void)
-{
-    return (kld_isloaded("uhub/ums") || kld_load("ums") != -1);
-}
-
 /*
  * Function to calculate linear acceleration.
  *
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to