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
nexedi
linux
Commits
6b75d22f
Commit
6b75d22f
authored
Apr 20, 2003
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove a tiny bit of kdev_t abuse from the floppy driver
parent
e5627bdf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
drivers/block/floppy.c
drivers/block/floppy.c
+2
-3
drivers/block/floppy98.c
drivers/block/floppy98.c
+2
-3
No files found.
drivers/block/floppy.c
View file @
6b75d22f
...
...
@@ -2263,10 +2263,9 @@ static struct cont_t format_cont={
bad_flp_intr
,
generic_done
};
static
int
do_format
(
kdev_t
devic
e
,
struct
format_descr
*
tmp_format_req
)
static
int
do_format
(
int
driv
e
,
struct
format_descr
*
tmp_format_req
)
{
int
ret
;
int
drive
=
DRIVE
(
device
);
LOCK_FDC
(
drive
,
1
);
set_floppy
(
drive
);
...
...
@@ -3556,7 +3555,7 @@ static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
case
FDFMTTRK
:
if
(
UDRS
->
fd_ref
!=
1
)
return
-
EBUSY
;
return
do_format
(
d
evic
e
,
&
inparam
.
f
);
return
do_format
(
d
riv
e
,
&
inparam
.
f
);
case
FDFMTEND
:
case
FDFLUSH
:
LOCK_FDC
(
drive
,
1
);
...
...
drivers/block/floppy98.c
View file @
6b75d22f
...
...
@@ -2318,10 +2318,9 @@ static struct cont_t format_cont={
bad_flp_intr
,
generic_done
};
static
int
do_format
(
kdev_t
devic
e
,
struct
format_descr
*
tmp_format_req
)
static
int
do_format
(
int
driv
e
,
struct
format_descr
*
tmp_format_req
)
{
int
ret
;
int
drive
=
DRIVE
(
device
);
LOCK_FDC
(
drive
,
1
);
set_floppy
(
drive
);
...
...
@@ -3635,7 +3634,7 @@ static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
case
FDFMTTRK
:
if
(
UDRS
->
fd_ref
!=
1
)
return
-
EBUSY
;
return
do_format
(
d
evic
e
,
&
inparam
.
f
);
return
do_format
(
d
riv
e
,
&
inparam
.
f
);
case
FDFMTEND
:
case
FDFLUSH
:
LOCK_FDC
(
drive
,
1
);
...
...
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