summaryrefslogtreecommitdiff
path: root/drivers/isdn/hardware/eicon/divasmain.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-06-10 12:49:31 -0700
committerDavid S. Miller <davem@davemloft.net>2008-06-10 12:49:31 -0700
commit495b36b15e17fb08434e3800959434f06a1a6fbc (patch)
tree9fbed7d1715651a6d3e2a8e1f44cb6fb35bd68f9 /drivers/isdn/hardware/eicon/divasmain.c
parentb36ffc47a17ab5ce6d9589a99ac5d135c9173a9a (diff)
isdn divas: fix proc creation
1. creating proc entry and not saving pointer to PDE and checking it is not going to work. 2. if proc entry wasn't created, no reason to remove it on error path. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/hardware/eicon/divasmain.c')
-rw-r--r--drivers/isdn/hardware/eicon/divasmain.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/isdn/hardware/eicon/divasmain.c b/drivers/isdn/hardware/eicon/divasmain.c
index 5fcbdccd7a53..16a874bb1561 100644
--- a/drivers/isdn/hardware/eicon/divasmain.c
+++ b/drivers/isdn/hardware/eicon/divasmain.c
@@ -806,7 +806,6 @@ static int DIVA_INIT_FUNCTION divas_init(void)
if (!create_divas_proc()) {
#ifdef MODULE
- remove_divas_proc();
divas_unregister_chrdev();
divasfunc_exit();
#endif