Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261872AbTEZRUE (ORCPT ); Mon, 26 May 2003 13:20:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261863AbTEZRTJ (ORCPT ); Mon, 26 May 2003 13:19:09 -0400 Received: from d06lmsgate-4.uk.ibm.com ([195.212.29.4]:229 "EHLO d06lmsgate-4.uk.ibm.com") by vger.kernel.org with ESMTP id S261887AbTEZRQF (ORCPT ); Mon, 26 May 2003 13:16:05 -0400 Date: Mon, 26 May 2003 19:25:41 +0200 From: Martin Schwidefsky To: linux-kernel@vger.kernel.org, torvalds@transmeta.com Subject: [PATCH] s390 (5/10): module count. Message-ID: <20030526172541.GF3748@mschwid3.boeblingen.de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4013 Lines: 148 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 $ * */ @@ -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 $ * */ @@ -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; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/