Commit aaca1f4f authored by Jeff Garzik's avatar Jeff Garzik

[netdrvr atmel_cs] kill compiler warning (jumping to "empty" label)

parent 64d6671f
...@@ -391,7 +391,7 @@ static void atmel_config(dev_link_t *link) ...@@ -391,7 +391,7 @@ static void atmel_config(dev_link_t *link)
local_info_t *dev; local_info_t *dev;
int last_fn, last_ret; int last_fn, last_ret;
u_char buf[64]; u_char buf[64];
int card_index = -1; int card_index = -1, done = 0;
handle = link->handle; handle = link->handle;
dev = link->priv; dev = link->priv;
...@@ -415,13 +415,13 @@ static void atmel_config(dev_link_t *link) ...@@ -415,13 +415,13 @@ static void atmel_config(dev_link_t *link)
manfid->manf == card_table[i].manf && manfid->manf == card_table[i].manf &&
manfid->card == card_table[i].card) { manfid->card == card_table[i].card) {
card_index = i; card_index = i;
goto done; done = 1;
} }
} }
} }
tuple.DesiredTuple = CISTPL_VERS_1; tuple.DesiredTuple = CISTPL_VERS_1;
if (CardServices(GetFirstTuple, handle, &tuple) == 0) { if (!done && (CardServices(GetFirstTuple, handle, &tuple) == 0)) {
int i, j, k; int i, j, k;
cistpl_vers_1_t *ver1; cistpl_vers_1_t *ver1;
CS_CHECK(GetTupleData, handle, &tuple); CS_CHECK(GetTupleData, handle, &tuple);
...@@ -446,12 +446,11 @@ static void atmel_config(dev_link_t *link) ...@@ -446,12 +446,11 @@ static void atmel_config(dev_link_t *link)
goto mismatch; goto mismatch;
} }
card_index = i; card_index = i;
goto done; break; /* done */
mismatch: mismatch:
j = 0; /* dummy stmt to shut up compiler */
} }
done:
} }
/* /*
......
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