All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] isdn: remove dead code
@ 2012-10-25 14:30 Alan Cox
  2012-10-26  7:47 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Cox @ 2012-10-25 14:30 UTC (permalink / raw)
  To: isdn, netdev

From: Alan Cox <alan@linux.intel.com>

multi is assigned to 0 and then acts as a constant. Remove the dead
code.

Signed-off-by: Alan Cox <alan@linux.intel.com>
---

 drivers/isdn/mISDN/l1oip_core.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/isdn/mISDN/l1oip_core.c b/drivers/isdn/mISDN/l1oip_core.c
index db50f78..f8e405c 100644
--- 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;
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] isdn: remove dead code
  2012-10-25 14:30 [PATCH] isdn: remove dead code Alan Cox
@ 2012-10-26  7:47 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-10-26  7:47 UTC (permalink / raw)
  To: alan; +Cc: isdn, netdev

From: Alan Cox <alan@lxorguk.ukuu.org.uk>
Date: Thu, 25 Oct 2012 15:30:52 +0100

> From: Alan Cox <alan@linux.intel.com>
> 
> multi is assigned to 0 and then acts as a constant. Remove the dead
> code.
> 
> Signed-off-by: Alan Cox <alan@linux.intel.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-26  7:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-25 14:30 [PATCH] isdn: remove dead code Alan Cox
2012-10-26  7:47 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.