]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rt2800pci: Fix compiler error on PowerPC
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 14 Sep 2011 21:50:22 +0000 (16:50 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Sep 2011 19:32:09 +0000 (15:32 -0400)
commitd331eb51e4d4190b2178c30fcafea54a94a577e8
treed3e1ba8c7be425d6de66a747c9212f0aa4bf77c4
parent7cabafcea793c003503a118da58da358b0692930
rt2800pci: Fix compiler error on PowerPC

Using gcc 4.4.5 on a Powerbook G4 with a PPC cpu, a complicated
if statement results in incorrect flow, whereas the equivalent switch
statement works correctly.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: stable <stable@kernel.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c