[IrDA]: tsap init routine factorisation.
authorG. Liakhovetski <gl@dsa-ac.de>
Tue, 3 Jul 2007 05:56:57 +0000 (22:56 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 11 Jul 2007 05:16:52 +0000 (22:16 -0700)
commit93cce3d3657bfb5d04789afcd5104f8c48700f32
tree03d9392aec25c4386c390d0b45f3ec3f50bd8702
parent66f5e51ed5a300291b34bf3e2b1e22ac28ca3631
[IrDA]: tsap init routine factorisation.

This patch extracts common code from irttp_open_tsap() and irttp_dup()
into a new function to 1) avoid code duplication, 2) help avoid
forgetting object initialization in the tsap duplication path in the
future.

Signed-off-by: G. Liakhovetski <gl@dsa-ac.de>
Signed-off-by: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/irttp.c