Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228367
b: refs/heads/master
c: 448d401
h: refs/heads/master
i:
  228365: 598805b
  228363: c07ac29
  228359: a05ca36
  228351: 89afbff
v: v3
  • Loading branch information
Marek Belisko authored and Greg Kroah-Hartman committed Dec 13, 2010
1 parent d15824a commit cfb3bb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 983bbfd091be5b3e1a729f31cce29431fbff2d27
refs/heads/master: 448d40140196b33f63a0a3f3f8bcad8f14c9c432
14 changes: 1 addition & 13 deletions trunk/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ static int ft1000_chkcard (struct ft1000_device *dev);
//Jim

static u8 tempbuffer[1600];
static unsigned long gCardIndex;

#define MAX_RCV_LOOP 100

Expand Down Expand Up @@ -773,8 +772,7 @@ u16 init_ft1000_netdev(struct ft1000_device *ft1000dev)
int i, ret_val;
struct list_head *cur, *tmp;
char card_nr[2];

gCardIndex=0; //mbelian
unsigned long gCardIndex = 0;

DEBUG("Enter init_ft1000_netdev...\n");

Expand All @@ -794,9 +792,6 @@ u16 init_ft1000_netdev(struct ft1000_device *ft1000dev)

dev_alloc_name(netdev, netdev->name);

//for the first inserted card, decide the card index beginning number, in case there are existing network interfaces
if ( gCardIndex == 0 )
{
DEBUG("init_ft1000_netdev: network device name is %s\n", netdev->name);

if ( strncmp(netdev->name,"eth", 3) == 0) {
Expand All @@ -816,13 +811,6 @@ u16 init_ft1000_netdev(struct ft1000_device *ft1000dev)
ret_val = -ENXIO;
goto err_net;
}
}
else
{
//not the first inserted card, increase card number by 1
pInfo->CardNumber = gCardIndex;
/*DEBUG("card number = %d\n", pInfo->CardNumber);*/ //mbelian
}

memset(&pInfo->stats, 0, sizeof(struct net_device_stats) );

Expand Down

0 comments on commit cfb3bb7

Please sign in to comment.