mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Martin Schwidefsky <schwidefsky@de.ibm.com>
To: linux-kernel@vger.kernel.org, torvalds@transmeta.com
Subject: [PATCH] s390 (5/10): module count.
Date: Mon, 26 May 2003 19:25:41 +0200	[thread overview]
Message-ID: <20030526172541.GF3748@mschwid3.boeblingen.de.ibm.com> (raw)

Remove unnecessary MOD_INC_USE_COUNT/MOD_DEC_USE_COUNT pairs.

diffstat:
 arch/s390/kernel/debug.c        |    3 ---
 drivers/s390/block/dasd_ioctl.c |    2 --
 drivers/s390/net/ctcmain.c      |    8 +++-----
 drivers/s390/net/iucv.c         |    8 +++-----
 4 files changed, 6 insertions(+), 15 deletions(-)

diff -urN linux-2.5/arch/s390/kernel/debug.c linux-2.5-s390/arch/s390/kernel/debug.c
--- linux-2.5/arch/s390/kernel/debug.c	Mon May 26 19:20:43 2003
+++ linux-2.5-s390/arch/s390/kernel/debug.c	Mon May 26 19:20:45 2003
@@ -585,7 +585,6 @@
 {
 	debug_info_t *rc = NULL;
 
-	MOD_INC_USE_COUNT;
 	if (!initialized)
 		BUG();
 	down(&debug_lock);
@@ -605,7 +604,6 @@
       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 @@
 	debug_info_put(id);
 	up(&debug_lock);
 
-	MOD_DEC_USE_COUNT;
       out:
 	return;
 }
diff -urN linux-2.5/drivers/s390/block/dasd_ioctl.c linux-2.5-s390/drivers/s390/block/dasd_ioctl.c
--- linux-2.5/drivers/s390/block/dasd_ioctl.c	Mon May  5 01:53:32 2003
+++ linux-2.5-s390/drivers/s390/block/dasd_ioctl.c	Mon May 26 19:20:45 2003
@@ -59,7 +59,6 @@
 	new->no = no;
 	new->handler = handler;
 	list_add(&new->list, &dasd_ioctl_list);
-	MOD_INC_USE_COUNT;
 	return 0;
 }
 
@@ -76,7 +75,6 @@
 		return -EINVAL;
 	list_del(&old->list);
 	kfree(old);
-	MOD_DEC_USE_COUNT;
 	return 0;
 }
 
diff -urN linux-2.5/drivers/s390/net/ctcmain.c linux-2.5-s390/drivers/s390/net/ctcmain.c
--- linux-2.5/drivers/s390/net/ctcmain.c	Mon May  5 01:53:12 2003
+++ linux-2.5-s390/drivers/s390/net/ctcmain.c	Mon May 26 19:20:45 2003
@@ -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 @@
 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 @@
 	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 @@
 ctc_stat_close(struct inode *inode, struct file *file)
 {
 	kfree(file->private_data);
-	MOD_DEC_USE_COUNT;
 	return 0;
 }
 
diff -urN linux-2.5/drivers/s390/net/iucv.c linux-2.5-s390/drivers/s390/net/iucv.c
--- linux-2.5/drivers/s390/net/iucv.c	Mon May  5 01:53:01 2003
+++ linux-2.5-s390/drivers/s390/net/iucv.c	Mon May 26 19:20:45 2003
@@ -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 @@
 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 @@
 		}
 		register_flag = 1;
 	}
-	MOD_INC_USE_COUNT;
 	iucv_debug(1, "exiting");
 	return new_handler;
 }				/* end of register function */
@@ -903,7 +902,6 @@
 	iucv_remove_handler(h);
 	kfree(h);
 
-	MOD_DEC_USE_COUNT;
 	iucv_debug(1, "exiting");
 	return 0;
 }

                 reply	other threads:[~2003-05-26 17:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030526172541.GF3748@mschwid3.boeblingen.de.ibm.com \
    --to=schwidefsky@de.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®