]> Pileus Git - ~andy/linux/commitdiff
isdn: remove dead code
authorAlan Cox <alan@linux.intel.com>
Thu, 25 Oct 2012 04:30:52 +0000 (04:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
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 <alan@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/mISDN/l1oip_core.c

index db50f788855db4f41de7f35e3aee4abe4da87253..f8e405c383a0774948c464f415ac94f77d7a5679 100644 (file)
@@ -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;