Commit 5036b683 authored by Martin Schwidefsky's avatar Martin Schwidefsky Committed by Linus Torvalds

[PATCH] s390: module count.

Remove unnecessary MOD_INC_USE_COUNT/MOD_DEC_USE_COUNT pairs.
parent 1391c772
...@@ -585,7 +585,6 @@ debug_info_t *debug_register ...@@ -585,7 +585,6 @@ debug_info_t *debug_register
{ {
debug_info_t *rc = NULL; debug_info_t *rc = NULL;
MOD_INC_USE_COUNT;
if (!initialized) if (!initialized)
BUG(); BUG();
down(&debug_lock); down(&debug_lock);
...@@ -605,7 +604,6 @@ debug_info_t *debug_register ...@@ -605,7 +604,6 @@ debug_info_t *debug_register
out: out:
if (rc == NULL){ if (rc == NULL){
printk(KERN_ERR "debug: debug_register failed for %s\n",name); printk(KERN_ERR "debug: debug_register failed for %s\n",name);
MOD_DEC_USE_COUNT;
} }
up(&debug_lock); up(&debug_lock);
return rc; return rc;
...@@ -627,7 +625,6 @@ void debug_unregister(debug_info_t * id) ...@@ -627,7 +625,6 @@ void debug_unregister(debug_info_t * id)
debug_info_put(id); debug_info_put(id);
up(&debug_lock); up(&debug_lock);
MOD_DEC_USE_COUNT;
out: out:
return; return;
} }
......
...@@ -59,7 +59,6 @@ dasd_ioctl_no_register(struct module *owner, int no, dasd_ioctl_fn_t handler) ...@@ -59,7 +59,6 @@ dasd_ioctl_no_register(struct module *owner, int no, dasd_ioctl_fn_t handler)
new->no = no; new->no = no;
new->handler = handler; new->handler = handler;
list_add(&new->list, &dasd_ioctl_list); list_add(&new->list, &dasd_ioctl_list);
MOD_INC_USE_COUNT;
return 0; return 0;
} }
...@@ -76,7 +75,6 @@ dasd_ioctl_no_unregister(struct module *owner, int no, dasd_ioctl_fn_t handler) ...@@ -76,7 +75,6 @@ dasd_ioctl_no_unregister(struct module *owner, int no, dasd_ioctl_fn_t handler)
return -EINVAL; return -EINVAL;
list_del(&old->list); list_del(&old->list);
kfree(old); kfree(old);
MOD_DEC_USE_COUNT;
return 0; return 0;
} }
......
/* /*
* $Id: ctcmain.c,v 1.40 2003/04/08 16:00:17 mschwide Exp $ * $Id: ctcmain.c,v 1.41 2003/04/15 16:45:37 aberg Exp $
* *
* CTC / ESCON network driver * CTC / ESCON network driver
* *
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *
* RELEASE-TAG: CTC/ESCON network driver $Revision: 1.40 $ * RELEASE-TAG: CTC/ESCON network driver $Revision: 1.41 $
* *
*/ */
...@@ -272,7 +272,7 @@ static void ...@@ -272,7 +272,7 @@ static void
print_banner(void) print_banner(void)
{ {
static int printed = 0; static int printed = 0;
char vbuf[] = "$Revision: 1.40 $"; char vbuf[] = "$Revision: 1.41 $";
char *version = vbuf; char *version = vbuf;
if (printed) if (printed)
...@@ -2582,7 +2582,6 @@ ctc_stat_open(struct inode *inode, struct file *file) ...@@ -2582,7 +2582,6 @@ ctc_stat_open(struct inode *inode, struct file *file)
file->private_data = kmalloc(STATS_BUFSIZE, GFP_KERNEL); file->private_data = kmalloc(STATS_BUFSIZE, GFP_KERNEL);
if (file->private_data == NULL) if (file->private_data == NULL)
return -ENOMEM; return -ENOMEM;
MOD_INC_USE_COUNT;
return 0; return 0;
} }
...@@ -2590,7 +2589,6 @@ static int ...@@ -2590,7 +2589,6 @@ static int
ctc_stat_close(struct inode *inode, struct file *file) ctc_stat_close(struct inode *inode, struct file *file)
{ {
kfree(file->private_data); kfree(file->private_data);
MOD_DEC_USE_COUNT;
return 0; return 0;
} }
......
/* /*
* $Id: iucv.c,v 1.10 2003/03/28 08:54:40 mschwide Exp $ * $Id: iucv.c,v 1.11 2003/04/15 16:45:37 aberg Exp $
* *
* IUCV network driver * IUCV network driver
* *
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *
* RELEASE-TAG: IUCV lowlevel driver $Revision: 1.10 $ * RELEASE-TAG: IUCV lowlevel driver $Revision: 1.11 $
* *
*/ */
...@@ -332,7 +332,7 @@ do { \ ...@@ -332,7 +332,7 @@ do { \
static void static void
iucv_banner(void) iucv_banner(void)
{ {
char vbuf[] = "$Revision: 1.10 $"; char vbuf[] = "$Revision: 1.11 $";
char *version = vbuf; char *version = vbuf;
if ((version = strchr(version, ':'))) { if ((version = strchr(version, ':'))) {
...@@ -842,7 +842,6 @@ iucv_register_program (__u8 pgmname[16], ...@@ -842,7 +842,6 @@ iucv_register_program (__u8 pgmname[16],
} }
register_flag = 1; register_flag = 1;
} }
MOD_INC_USE_COUNT;
iucv_debug(1, "exiting"); iucv_debug(1, "exiting");
return new_handler; return new_handler;
} /* end of register function */ } /* end of register function */
...@@ -903,7 +902,6 @@ iucv_unregister_program (iucv_handle_t handle) ...@@ -903,7 +902,6 @@ iucv_unregister_program (iucv_handle_t handle)
iucv_remove_handler(h); iucv_remove_handler(h);
kfree(h); kfree(h);
MOD_DEC_USE_COUNT;
iucv_debug(1, "exiting"); iucv_debug(1, "exiting");
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment