Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
5036b683
Commit
5036b683
authored
May 25, 2003
by
Martin Schwidefsky
Committed by
Linus Torvalds
May 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] s390: module count.
Remove unnecessary MOD_INC_USE_COUNT/MOD_DEC_USE_COUNT pairs.
parent
1391c772
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
15 deletions
+6
-15
arch/s390/kernel/debug.c
arch/s390/kernel/debug.c
+0
-3
drivers/s390/block/dasd_ioctl.c
drivers/s390/block/dasd_ioctl.c
+0
-2
drivers/s390/net/ctcmain.c
drivers/s390/net/ctcmain.c
+3
-5
drivers/s390/net/iucv.c
drivers/s390/net/iucv.c
+3
-5
No files found.
arch/s390/kernel/debug.c
View file @
5036b683
...
...
@@ -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
;
}
...
...
drivers/s390/block/dasd_ioctl.c
View file @
5036b683
...
...
@@ -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
;
}
...
...
drivers/s390/net/ctcmain.c
View file @
5036b683
/*
* $Id: ctcmain.c,v 1.4
0 2003/04/08 16:00:17 mschwide
Exp $
* $Id: ctcmain.c,v 1.4
1 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.4
0
$
* RELEASE-TAG: CTC/ESCON network driver $Revision: 1.4
1
$
*
*/
...
...
@@ -272,7 +272,7 @@ static void
print_banner
(
void
)
{
static
int
printed
=
0
;
char
vbuf
[]
=
"$Revision: 1.4
0
$"
;
char
vbuf
[]
=
"$Revision: 1.4
1
$"
;
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;
}
...
...
drivers/s390/net/iucv.c
View file @
5036b683
/*
* $Id: iucv.c,v 1.1
0 2003/03/28 08:54:40 mschwide
Exp $
* $Id: iucv.c,v 1.1
1 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.1
0
$
* RELEASE-TAG: IUCV lowlevel driver $Revision: 1.1
1
$
*
*/
...
...
@@ -332,7 +332,7 @@ do { \
static
void
iucv_banner
(
void
)
{
char
vbuf
[]
=
"$Revision: 1.1
0
$"
;
char
vbuf
[]
=
"$Revision: 1.1
1
$"
;
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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment