From patchwork Sat May 8 16:25:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 97924 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o48GQACN011222 for ; Sat, 8 May 2010 16:26:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753702Ab0EHQ0J (ORCPT ); Sat, 8 May 2010 12:26:09 -0400 Received: from mail-qy0-f183.google.com ([209.85.221.183]:41346 "EHLO mail-qy0-f183.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753212Ab0EHQ0F (ORCPT ); Sat, 8 May 2010 12:26:05 -0400 Received: by qyk13 with SMTP id 13so3449708qyk.1 for ; Sat, 08 May 2010 09:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=3ti2yeX5Cr5QhDPB4CQe3vg8oFAR7UTQuIwgo+R1MCA=; b=gLqjPPsrRW4MF4xvHh3nYoOSVqzju8BW4I1kyyQxBN+RGswjyBOQf6zGVh2WkZiJqO Pr949LvDvrwVb01rlzeGs4q4fbBFA6vBDGGNfn4EoByrjeCJcWbkCJeofSpiYcBNpPw+ bWXsFtCpelULk97yHCWl0OZ6mCic20gTUwf7s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=ZHc2wHfxqGFfxRWsOMKPTrnD1OV9MHCMAihVIVNazzDNrRSTSGANAzxRYfcN0DU6C1 PhJY+aH7iXTeNbWkq649e/WMcwIjaUC36pkXA5aZYK1dC0PMkhg2K0rEr9afm5XGmdcq 1v52o2krez4DnQAq8ywYfy679u1qkb6JwABpk= Received: by 10.229.181.203 with SMTP id bz11mr1241346qcb.94.1273335964116; Sat, 08 May 2010 09:26:04 -0700 (PDT) Received: from bicker ([205.177.176.130]) by mx.google.com with ESMTPS id a11sm2073568qco.10.2010.05.08.09.25.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 08 May 2010 09:26:03 -0700 (PDT) Date: Sat, 8 May 2010 18:25:51 +0200 From: Dan Carpenter To: Luciano Coelho Cc: "John W. Linville" , Juuso Oikarinen , Teemu Paasikivi , Kalle Valo , linux-wireless@vger.kernel.org Subject: [patch 8/9] wl1271: fix notifier interface supported test Message-ID: <20100508162551.GT27064@bicker> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 08 May 2010 16:26:10 +0000 (UTC) diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c index b61cd10..55aa813 100644 --- a/drivers/net/wireless/wl12xx/wl1271_main.c +++ b/drivers/net/wireless/wl12xx/wl1271_main.c @@ -852,7 +852,7 @@ static int wl1271_dev_notify(struct notifier_block *me, unsigned long what, if (wl == wl_temp) break; } - if (wl == NULL) + if (wl != wl_temp) return NOTIFY_DONE; /* Get the interface IP address for the device. "ifa" will become