]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ath5k: unify rx descriptor error handling
authorBruno Randolf <br1@einfach.org>
Wed, 16 Jun 2010 10:11:46 +0000 (19:11 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 16 Jun 2010 18:59:02 +0000 (14:59 -0400)
There is no reason for a special handling (return) here, just break like we do
with the checks before.

Signed-off-by: Bruno Randolf <br1@einfach.org>
Acked-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/base.c

index 5479f85fcd353ba0c9195bef2c599426a65779e9..d9df11490ab66f04021ab6075dd32d8b0ad3dedf 100644 (file)
@@ -1937,8 +1937,7 @@ ath5k_tasklet_rx(unsigned long data)
                else if (unlikely(ret)) {
                        ATH5K_ERR(sc, "error in processing rx descriptor\n");
                        sc->stats.rxerr_proc++;
-                       spin_unlock(&sc->rxbuflock);
-                       return;
+                       break;
                }
 
                sc->stats.rx_all_count++;