git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
net
/
irda
/
qos.c
diff --git
a/net/irda/qos.c
b/net/irda/qos.c
index
d37dd25
..
b02d2db
100644
(file)
--- a/
net/irda/qos.c
+++ b/
net/irda/qos.c
@@
-211,6
+211,17
@@
static int msb_index (__u16 word)
return index;
}
+static inline __u32 byte_value(__u8 byte, __u32 *array)
+{
+ int index;
+
+ ASSERT(array != NULL, return -1;);
+
+ index = msb_index(byte);
+
+ return index_value(index, array);
+}
+
/*
* Function value_lower_bits (value, array)
*