Return-path: Received: from mail-we0-f174.google.com ([74.125.82.174]:42523 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758872Ab2EONi4 (ORCPT ); Tue, 15 May 2012 09:38:56 -0400 Received: by mail-we0-f174.google.com with SMTP id u7so2485267wey.19 for ; Tue, 15 May 2012 06:38:56 -0700 (PDT) From: Arik Nemtsov To: Cc: Luciano Coelho , Arik Nemtsov Subject: [PATCH 3/3] wlcore: remove duplicate BUG_ON during recovery Date: Tue, 15 May 2012 16:38:46 +0300 Message-Id: <1337089126-11570-3-git-send-email-arik@wizery.com> (sfid-20120515_153859_338652_68E6B1CF) In-Reply-To: <1337089126-11570-1-git-send-email-arik@wizery.com> References: <1337089126-11570-1-git-send-email-arik@wizery.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: This BUG_ON also ignored the INTENDED_FW_RECOVERY flag. This would result in a BUG() when using the bug_on_recovery module parameter during multi-role. Signed-off-by: Arik Nemtsov --- drivers/net/wireless/ti/wlcore/main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index 4e71078..f4b036e 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c @@ -852,8 +852,6 @@ static void wl1271_recovery_work(struct work_struct *work) goto out_unlock; } - BUG_ON(bug_on_recovery); - /* * Advance security sequence number to overcome potential progress * in the firmware during recovery. This doens't hurt if the network is -- 1.7.9.5