svn commit: r233090 - head/usr.sbin/moused

[ Available lists | Index of svn-src-head | Month of Mar 2012 | Week of 17 Mar 2012 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Hans Petter Selasky <hselasky@FreeBSD.org>
Date
17 Mar 2012 16:40:16
Subject
svn commit: r233090 - head/usr.sbin/moused
Message-ID
201203171640.q2HGeGFf078705@svn.freebsd.org


[ Hide this part ]
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.
*

Elapsed time: 0.113 seconds