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
e5627bdf
Commit
e5627bdf
authored
Apr 20, 2003
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove some junk from hd98.c's ioctl implementation
Also pointed out by Al.
parent
54b20953
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
drivers/ide/legacy/hd98.c
drivers/ide/legacy/hd98.c
+1
-4
No files found.
drivers/ide/legacy/hd98.c
View file @
e5627bdf
...
@@ -655,11 +655,8 @@ static int hd_ioctl(struct inode * inode, struct file * file,
...
@@ -655,11 +655,8 @@ static int hd_ioctl(struct inode * inode, struct file * file,
unsigned
int
cmd
,
unsigned
long
arg
)
unsigned
int
cmd
,
unsigned
long
arg
)
{
{
struct
hd_geometry
*
loc
=
(
struct
hd_geometry
*
)
arg
;
struct
hd_geometry
*
loc
=
(
struct
hd_geometry
*
)
arg
;
int
dev
;
int
dev
=
DEVICE_NR
(
inode
->
i_rdev
)
;
if
((
!
inode
)
||
kdev_none
(
inode
->
i_rdev
))
return
-
EINVAL
;
dev
=
DEVICE_NR
(
inode
->
i_rdev
);
if
(
dev
>=
NR_HD
)
if
(
dev
>=
NR_HD
)
return
-
EINVAL
;
return
-
EINVAL
;
switch
(
cmd
)
{
switch
(
cmd
)
{
...
...
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