]> git.baikalelectronics.ru Git - kernel.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)
commitbe85258fea32bf3210fcae77b85300b6272573ad
treed3e1ba8c7be425d6de66a747c9212f0aa4bf77c4
parent7f4e336cbe54f812dbfbdad729b7829462a176c1
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