ar71xx/ar933x_wmac_reset: remove indefinite wait for wmac reset
authorAlexander Couzens <lynxis@fe80.eu>
Sun, 11 Jun 2017 11:27:20 +0000 (13:27 +0200)
committerAlexander Couzens <lynxis@fe80.eu>
Sun, 11 Jun 2017 12:22:44 +0000 (14:22 +0200)
Found-by: Coverity Scan #1329327
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
target/linux/ar71xx/patches-4.4/200-MIPS-ath79-fix-ar933x-wmac-reset.patch

index e0821a7776c647921c01a32ef20fa435b2a8d3c6..1a6b2209d84e8b820635cba5e1b97843809b5eff 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/ath79/dev-wmac.c
 +++ b/arch/mips/ath79/dev-wmac.c
-@@ -62,10 +62,27 @@ static void __init ar913x_wmac_setup(voi
+@@ -61,10 +61,27 @@ static void __init ar913x_wmac_setup(voi
  
  static int ar933x_wmac_reset(void)
  {
@@ -21,7 +21,6 @@
 +                      break;
 +
 +              udelay(10000);
-+              retries++;
 +      }
 +
 +      pr_err("ar933x: WMAC reset timed out");