]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit6f626b7463711ad667729393ff680fe5d5ed07ba
tree03d9392aec25c4386c390d0b45f3ec3f50bd8702
parentb2ed34c1e4cf2b2a34413ef7ccd34e9e9ff92016
[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