patch-2.4.0-test10 linux/drivers/net/wan/cosa.c
Next file: linux/drivers/net/wan/sdlamain.c
Previous file: linux/drivers/net/tun.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Mon Oct 16 12:58:51 2000
- Orig file:
v2.4.0-test9/linux/drivers/net/wan/cosa.c
- Orig date:
Sun Oct 8 10:50:20 2000
diff -u --recursive --new-file v2.4.0-test9/linux/drivers/net/wan/cosa.c linux/drivers/net/wan/cosa.c
@@ -228,7 +228,7 @@
/* Maybe the following should be allocated dynamically */
static struct cosa_data cosa_cards[MAX_CARDS];
-static int nr_cards = 0;
+static int nr_cards;
#ifdef COSA_ISA_AUTOPROBE
static int io[MAX_CARDS+1] = { 0x220, 0x228, 0x210, 0x218, 0, };
@@ -365,7 +365,7 @@
/* ---------- Initialization stuff ---------- */
-static devfs_handle_t devfs_handle = NULL;
+static devfs_handle_t devfs_handle;
#ifdef MODULE
int init_module(void)
@@ -1387,7 +1387,7 @@
*/
static int cosa_dma_able(struct channel_data *chan, char *buf, int len)
{
- static int count = 0;
+ static int count;
unsigned long b = (unsigned long)buf;
if (b+len >= MAX_DMA_ADDRESS)
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)