projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a328d8
)
isdn: remove dead code
author
Alan Cox
<
[email protected]
>
Thu, 25 Oct 2012 04:30:52 +0000
(
04:30
+0000)
committer
David S. Miller
<
[email protected]
>
Fri, 26 Oct 2012 07:46:41 +0000
(
03:46
-0400)
multi is assigned to 0 and then acts as a constant. Remove the dead
code.
Signed-off-by: Alan Cox <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/isdn/mISDN/l1oip_core.c
patch
|
blob
|
history
diff --git
a/drivers/isdn/mISDN/l1oip_core.c
b/drivers/isdn/mISDN/l1oip_core.c
index db50f788855db4f41de7f35e3aee4abe4da87253..f8e405c383a0774948c464f415ac94f77d7a5679 100644
(file)
--- a/
drivers/isdn/mISDN/l1oip_core.c
+++ b/
drivers/isdn/mISDN/l1oip_core.c
@@
-277,7
+277,6
@@
l1oip_socket_send(struct l1oip *hc, u8 localcodec, u8 channel, u32 chanmask,
u16 timebase, u8 *buf, int len)
{
u8 *p;
- int multi = 0;
u8 frame[len + 32];
struct socket *socket = NULL;
@@
-317,9
+316,7
@@
l1oip_socket_send(struct l1oip *hc, u8 localcodec, u8 channel, u32 chanmask,
*p++ = hc->id >> 8;
*p++ = hc->id;
}
- *p++ = (multi == 1) ? 0x80 : 0x00 + channel; /* m-flag, channel */
- if (multi == 1)
- *p++ = len; /* length */
+ *p++ = 0x00 + channel; /* m-flag, channel */
*p++ = timebase >> 8; /* time base */
*p++ = timebase;