Commit 9af8670a authored by Andrew Morton's avatar Andrew Morton Committed by Christoph Hellwig

[PATCH] Fix warnings in xd.c

Fix a few unused var warnings in drivers/block/xd.c
parent b86904dd
...@@ -57,7 +57,9 @@ ...@@ -57,7 +57,9 @@
#include "xd.h" #include "xd.h"
static void __init do_xd_setup (int *integers); static void __init do_xd_setup (int *integers);
#ifdef MODULE
static int xd[5] = { -1,-1,-1,-1, }; static int xd[5] = { -1,-1,-1,-1, };
#endif
#define XD_DONT_USE_DMA 0 /* Initial value. may be overriden using #define XD_DONT_USE_DMA 0 /* Initial value. may be overriden using
"nodma" module option */ "nodma" module option */
...@@ -148,16 +150,18 @@ static struct request_queue xd_queue; ...@@ -148,16 +150,18 @@ static struct request_queue xd_queue;
static int __init xd_init(void) static int __init xd_init(void)
{ {
u_char i,controller; u_char i,controller;
u_char count = 0;
unsigned int address; unsigned int address;
int err; int err;
#ifdef MODULE #ifdef MODULE
{
u_char count = 0;
for (i = 4; i > 0; i--) for (i = 4; i > 0; i--)
if (((xd[i] = xd[i-1]) >= 0) && !count) if (((xd[i] = xd[i-1]) >= 0) && !count)
count = i; count = i;
if ((xd[0] = count)) if ((xd[0] = count))
do_xd_setup(xd); do_xd_setup(xd);
}
#endif #endif
init_timer (&xd_watchdog_int); xd_watchdog_int.function = xd_watchdog; init_timer (&xd_watchdog_int); xd_watchdog_int.function = xd_watchdog;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment