CAPI: Clean up capi_open/release
authorJan Kiszka <jan.kiszka@web.de>
Mon, 8 Feb 2010 10:12:18 +0000 (10:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2010 00:01:23 +0000 (16:01 -0800)
commiteca39dd830dbc58061aa6cd68853c39055236be3
tree2c68238237765d31bf29921798b1e00c8f459be7
parentb8f433dc5cd9b910c12ef5cca351bf720d3e68c1
CAPI: Clean up capi_open/release

Fold capidev_alloc and capidev_free into capi_open and capi_release -
there are no other users. Someone pushed a lock_kernel into capi_open.
Drop it, we don't need it. Also remove the useless test from open that
checks for private_data == NULL.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/capi/capi.c