LWN.net Logo

Remove un-needed MOD_*_USE_COUNT from capimain.c

From:  Bob Miller <rem@osdl.org>
To:  trivial@rustcorp.com.au
Subject:  [PATCH 2.5.73 TRIVIAL] Remove un-needed MOD_*_USE_COUNT from capimain.c
Date:  Thu, 26 Jun 2003 13:26:00 -0700
Cc:  linux-kernel@vger.kernel.org

Module init methods are called with a reference already taken by the
module code so the MOD_*_USE_COUNT can be deleted.

--
Bob Miller                                      Email: rem@osdl.org
Open Source Development Lab                     Phone: 503.626.2455 Ext. 17


diff -Nru a/drivers/isdn/hardware/eicon/capimain.c b/drivers/isdn/hardware/eicon/capimain.c
--- a/drivers/isdn/hardware/eicon/capimain.c	Wed Jun 25 16:18:28 2003
+++ b/drivers/isdn/hardware/eicon/capimain.c	Wed Jun 25 16:18:28 2003
@@ -160,8 +160,6 @@
 	char tmprev[32];
 	int ret = 0;
 
-	MOD_INC_USE_COUNT;
-
 	sprintf(DRIVERRELEASE, "%d.%d%s", DRRELMAJOR, DRRELMINOR,
 		DRRELEXTRA);
 
@@ -177,7 +175,6 @@
 		ret = -EIO;
 	}
 
-	MOD_DEC_USE_COUNT;
 	return ret;
 }
-
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/

Copyright © 2003, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds