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
d86cde72
Commit
d86cde72
authored
Dec 03, 2002
by
Alexander Viro
Committed by
Linus Torvalds
Dec 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] dasd cleanup
switched to devfs_remove(), killed gratitious devfs_handle_t variable.
parent
ddf1bda1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
drivers/s390/block/dasd.c
drivers/s390/block/dasd.c
+2
-5
No files found.
drivers/s390/block/dasd.c
View file @
d86cde72
...
@@ -194,7 +194,6 @@ dasd_find_disc(dasd_device_t * device)
...
@@ -194,7 +194,6 @@ dasd_find_disc(dasd_device_t * device)
/*
/*
* SECTION: Operations on the device structure.
* SECTION: Operations on the device structure.
*/
*/
static
devfs_handle_t
dasd_devfs_handle
;
static
wait_queue_head_t
dasd_init_waitq
;
static
wait_queue_head_t
dasd_init_waitq
;
/*
/*
...
@@ -2189,8 +2188,7 @@ dasd_exit(void)
...
@@ -2189,8 +2188,7 @@ dasd_exit(void)
dasd_ioctl_exit
();
dasd_ioctl_exit
();
dasd_gendisk_exit
();
dasd_gendisk_exit
();
dasd_devmap_exit
();
dasd_devmap_exit
();
if
(
dasd_devfs_handle
)
devfs_remove
(
"dasd"
);
devfs_unregister
(
dasd_devfs_handle
);
if
(
dasd_debug_area
!=
NULL
)
{
if
(
dasd_debug_area
!=
NULL
)
{
debug_unregister
(
dasd_debug_area
);
debug_unregister
(
dasd_debug_area
);
dasd_debug_area
=
NULL
;
dasd_debug_area
=
NULL
;
...
@@ -2237,8 +2235,7 @@ dasd_init(void)
...
@@ -2237,8 +2235,7 @@ dasd_init(void)
DBF_EVENT
(
DBF_EMERG
,
"%s"
,
"debug area created"
);
DBF_EVENT
(
DBF_EMERG
,
"%s"
,
"debug area created"
);
dasd_devfs_handle
=
devfs_mk_dir
(
NULL
,
"dasd"
,
NULL
);
if
(
!
devfs_mk_dir
(
NULL
,
"dasd"
,
NULL
))
{
if
(
dasd_devfs_handle
<
0
)
{
DBF_EVENT
(
DBF_ALERT
,
"%s"
,
"no devfs"
);
DBF_EVENT
(
DBF_ALERT
,
"%s"
,
"no devfs"
);
rc
=
-
ENOSYS
;
rc
=
-
ENOSYS
;
goto
failed
;
goto
failed
;
...
...
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