Commit e87f3d53 authored by Sujith Manoharan's avatar Sujith Manoharan Committed by John W. Linville

ath9k: Reduce deep indentation

The EDMA case is handled first, so the else condition
can be removed.
Signed-off-by: default avatarSujith Manoharan <c_manoha@qca.qualcomm.com>
Acked-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7a897203
......@@ -274,9 +274,9 @@ int ath_rx_init(struct ath_softc *sc, int nbufs)
common->rx_bufsize = IEEE80211_MAX_MPDU_LEN / 2 +
sc->sc_ah->caps.rx_status_len;
if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_EDMA) {
if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_EDMA)
return ath_rx_edma_init(sc, nbufs);
} else {
ath_dbg(common, CONFIG, "cachelsz %u rxbufsize %u\n",
common->cachelsz, common->rx_bufsize);
......@@ -315,8 +315,6 @@ int ath_rx_init(struct ath_softc *sc, int nbufs)
}
}
sc->rx.rxlink = NULL;
}
err:
if (error)
ath_rx_cleanup(sc);
......@@ -334,7 +332,8 @@ void ath_rx_cleanup(struct ath_softc *sc)
if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_EDMA) {
ath_rx_edma_cleanup(sc);
return;
} else {
}
list_for_each_entry(bf, &sc->rx.rxbuf, list) {
skb = bf->bf_mpdu;
if (skb) {
......@@ -346,7 +345,6 @@ void ath_rx_cleanup(struct ath_softc *sc)
bf->bf_mpdu = NULL;
}
}
}
}
/*
......
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