summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/os/subr.c')
-rw-r--r--usr/src/uts/common/os/subr.c26
1 files changed, 3 insertions, 23 deletions
diff --git a/usr/src/uts/common/os/subr.c b/usr/src/uts/common/os/subr.c
index 9c9942ec8c..4753f1152a 100644
--- a/usr/src/uts/common/os/subr.c
+++ b/usr/src/uts/common/os/subr.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -218,25 +217,6 @@ umax(uint_t a, uint_t b)
#endif /* !_LP64 */
/*
- * Return bit position of least significant bit set in mask,
- * starting numbering from 1.
- */
-int
-ffs(long mask)
-{
- int i;
-
- if (mask == 0)
- return (0);
- for (i = 1; i <= NBBY * sizeof (mask); i++) {
- if (mask & 1)
- return (i);
- mask >>= 1;
- }
- return (0);
-}
-
-/*
* Parse suboptions from a string.
* Same as getsubopt(3C).
*/