]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] s390: module count.
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 26 May 2003 06:34:54 +0000 (23:34 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 26 May 2003 06:34:54 +0000 (23:34 -0700)
Remove unnecessary MOD_INC_USE_COUNT/MOD_DEC_USE_COUNT pairs.

arch/s390/kernel/debug.c
drivers/s390/block/dasd_ioctl.c
drivers/s390/net/ctcmain.c
drivers/s390/net/iucv.c

index e4b3191a4fd9450343d4d035c84e03cf235c454d..d2980b671702b8164cf0dca8e37b8d1991899b23 100644 (file)
@@ -585,7 +585,6 @@ debug_info_t *debug_register
 {
        debug_info_t *rc = NULL;
 
-       MOD_INC_USE_COUNT;
        if (!initialized)
                BUG();
        down(&debug_lock);
@@ -605,7 +604,6 @@ debug_info_t *debug_register
       out:
         if (rc == NULL){
                printk(KERN_ERR "debug: debug_register failed for %s\n",name);
-               MOD_DEC_USE_COUNT;
         }
        up(&debug_lock);
        return rc;
@@ -627,7 +625,6 @@ void debug_unregister(debug_info_t * id)
        debug_info_put(id);
        up(&debug_lock);
 
-       MOD_DEC_USE_COUNT;
       out:
        return;
 }
index 466c85300a843b7ec82b8229b9c9809e78681690..18d45351e81ef768d8e1064a057c455f16cfa8d7 100644 (file)
@@ -59,7 +59,6 @@ dasd_ioctl_no_register(struct module *owner, int no, dasd_ioctl_fn_t handler)
        new->no = no;
        new->handler = handler;
        list_add(&new->list, &dasd_ioctl_list);
-       MOD_INC_USE_COUNT;
        return 0;
 }
 
@@ -76,7 +75,6 @@ dasd_ioctl_no_unregister(struct module *owner, int no, dasd_ioctl_fn_t handler)
                return -EINVAL;
        list_del(&old->list);
        kfree(old);
-       MOD_DEC_USE_COUNT;
        return 0;
 }
 
index 45e31d6619ad8d1e1b43fca3d581ed3a56020884..1262a21f4398d2e8ae5615ffc5bb03287d12bc95 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $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
  *
@@ -36,7 +36,7 @@
  * along with this program; if not, write to the Free Software
  * 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 $
  *
  */
 \f
@@ -272,7 +272,7 @@ static void
 print_banner(void)
 {
        static int printed = 0;
-       char vbuf[] = "$Revision: 1.40 $";
+       char vbuf[] = "$Revision: 1.41 $";
        char *version = vbuf;
 
        if (printed)
@@ -2582,7 +2582,6 @@ ctc_stat_open(struct inode *inode, struct file *file)
        file->private_data = kmalloc(STATS_BUFSIZE, GFP_KERNEL);
        if (file->private_data == NULL)
                return -ENOMEM;
-       MOD_INC_USE_COUNT;
        return 0;
 }
 
@@ -2590,7 +2589,6 @@ static int
 ctc_stat_close(struct inode *inode, struct file *file)
 {
        kfree(file->private_data);
-       MOD_DEC_USE_COUNT;
        return 0;
 }
 
index 7911706d8693c3da3a255d288132a31fb4cfce9f..2b52bb46dddbb7b1a0779af2ae5bde0554f06e9b 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * $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
  *
@@ -29,7 +29,7 @@
  * along with this program; if not, write to the Free Software
  * 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 $
  *
  */
 \f
@@ -332,7 +332,7 @@ do { \
 static void
 iucv_banner(void)
 {
-       char vbuf[] = "$Revision: 1.10 $";
+       char vbuf[] = "$Revision: 1.11 $";
        char *version = vbuf;
 
        if ((version = strchr(version, ':'))) {
@@ -842,7 +842,6 @@ iucv_register_program (__u8 pgmname[16],
                }
                register_flag = 1;
        }
-       MOD_INC_USE_COUNT;
        iucv_debug(1, "exiting");
        return new_handler;
 }                              /* end of register function */
@@ -903,7 +902,6 @@ iucv_unregister_program (iucv_handle_t handle)
        iucv_remove_handler(h);
        kfree(h);
 
-       MOD_DEC_USE_COUNT;
        iucv_debug(1, "exiting");
        return 0;
 }