]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: move checks and stats into new function
authorBruno Randolf <br1@einfach.org>
Wed, 16 Jun 2010 10:11:56 +0000 (19:11 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 16 Jun 2010 18:59:03 +0000 (14:59 -0400)
commit9ae90e9d773e63c780e27d69e966a273c4289d03
treef15dfcdeb5674825dd69b7840264b017c8076514
parentca73955d333b1ecbeb117b96774ae1fa10431237
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