]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
rt2x00: Cleanup/optimize set_state() function callback function
authorIvo van Doorn <IvDoorn@gmail.com>
Tue, 3 Jun 2008 16:58:56 +0000 (18:58 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Sat, 14 Jun 2008 16:17:55 +0000 (12:17 -0400)
commit2b08da3fb595432f87b5206c1c77dcb72300cacf
treeb165baf29c47a5e58ac7f9d755942aca5d519614
parent9dad92b9ba49eaab72513d821ae43298bcf93b90
rt2x00: Cleanup/optimize set_state() function callback function

* Reduce goto usage
* Mark if-statements which are true on hardware error unlikely()
* Cleanup debug messages

This makes the code look nicer and be better optimized since
the chance of hardware errors should be very small.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2400pci.c
drivers/net/wireless/rt2x00/rt2500pci.c
drivers/net/wireless/rt2x00/rt2500usb.c
drivers/net/wireless/rt2x00/rt2x00dev.c
drivers/net/wireless/rt2x00/rt61pci.c
drivers/net/wireless/rt2x00/rt73usb.c