Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 159403
b: refs/heads/master
c: 7819ac8
h: refs/heads/master
i:
  159401: 4b11f8c
  159399: 4c26c09
v: v3
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Aug 4, 2009
1 parent fb639bf commit c8a7e4c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 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: fbf54660d1b48fba8527aae5c628ba72feee8f83
refs/heads/master: 7819ac84b689b61340f29af6233fa1d15b76a6ef
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/ath/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ struct ath_hw *ath9k_hw_attach(u16 devid, struct ath_softc *sc, int *error)
ah = ath9k_hw_do_attach(devid, sc, error);
break;
default:
*error = -ENXIO;
*error = -EOPNOTSUPP;
break;
}

Expand Down
7 changes: 3 additions & 4 deletions trunk/drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,6 @@ static int ath9k_reg_notifier(struct wiphy *wiphy,
static int ath_init(u16 devid, struct ath_softc *sc)
{
struct ath_hw *ah = NULL;
int status;
int error = 0, i;
int csz = 0;

Expand Down Expand Up @@ -1323,11 +1322,11 @@ static int ath_init(u16 devid, struct ath_softc *sc)
/* XXX assert csz is non-zero */
sc->cachelsz = csz << 2; /* convert to bytes */

ah = ath9k_hw_attach(devid, sc, &status);
ah = ath9k_hw_attach(devid, sc, &error);
if (ah == NULL) {
DPRINTF(sc, ATH_DBG_FATAL,
"Unable to attach hardware; HAL status %d\n", status);
error = -ENXIO;
"Unable to attach hardware; "
"initialization status: %d\n", error);
goto bad;
}
sc->sc_ah = ah;
Expand Down

0 comments on commit c8a7e4c

Please sign in to comment.