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
9af8670a
Commit
9af8670a
authored
Apr 29, 2003
by
Andrew Morton
Committed by
Christoph Hellwig
Apr 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Fix warnings in xd.c
Fix a few unused var warnings in drivers/block/xd.c
parent
b86904dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
drivers/block/xd.c
drivers/block/xd.c
+10
-6
No files found.
drivers/block/xd.c
View file @
9af8670a
...
...
@@ -57,7 +57,9 @@
#include "xd.h"
static
void
__init
do_xd_setup
(
int
*
integers
);
#ifdef MODULE
static
int
xd
[
5
]
=
{
-
1
,
-
1
,
-
1
,
-
1
,
};
#endif
#define XD_DONT_USE_DMA 0
/* Initial value. may be overriden using
"nodma" module option */
...
...
@@ -148,16 +150,18 @@ static struct request_queue xd_queue;
static
int
__init
xd_init
(
void
)
{
u_char
i
,
controller
;
u_char
count
=
0
;
unsigned
int
address
;
int
err
;
#ifdef MODULE
for
(
i
=
4
;
i
>
0
;
i
--
)
if
(((
xd
[
i
]
=
xd
[
i
-
1
])
>=
0
)
&&
!
count
)
count
=
i
;
if
((
xd
[
0
]
=
count
))
do_xd_setup
(
xd
);
{
u_char
count
=
0
;
for
(
i
=
4
;
i
>
0
;
i
--
)
if
(((
xd
[
i
]
=
xd
[
i
-
1
])
>=
0
)
&&
!
count
)
count
=
i
;
if
((
xd
[
0
]
=
count
))
do_xd_setup
(
xd
);
}
#endif
init_timer
(
&
xd_watchdog_int
);
xd_watchdog_int
.
function
=
xd_watchdog
;
...
...
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