isdn: remove dead code
Subsystems (2)
PATCH 1/1 isdn: remove dead code
From: Alan Cox <[email protected]>
multi is assigned to 0 and then acts as a constant. Remove the dead code.
Signed-off-by Alan Cox <[email protected]>
---
drivers/isdn/mISDN/l1oip_core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/isdn/mISDN/l1oip_core.c +1 -4
@@ -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;
From: Alan Cox <[email protected]>
Date: Thu, 25 Oct 2012 15:30:52 +0100
Quoted 6 lines
From: Alan Cox <[email protected]>
multi is assigned to 0 and then acts as a constant. Remove the dead code.
Signed-off-by Alan Cox <[email protected]>
Applied.