ath5k: move checks and stats into new function
commit02a78b42f84b61c689a22f4429d73f92a972bc83
authorBruno Randolf <br1@einfach.org>
Wed, 16 Jun 2010 10:11:56 +0000 (16 19:11 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 16 Jun 2010 18:59:03 +0000 (16 14:59 -0400)
treef15dfcdeb5674825dd69b7840264b017c8076514
parent8a89f063e79bcbd38d01bb25948840fe909e62cd
ath5k: move checks and stats into new function

Create a new function ath5k_receive_frame_ok() which checks for errors, updates
error statistics and tells us if we want to further "receive" this frame or
not. This way we can avoid a goto and have a cleaner separation between buffer
handling and other things.

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