From patchwork Fri Sep 10 11:57:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 168732 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8ABvX68029361 for ; Fri, 10 Sep 2010 11:57:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753405Ab0IJL5b (ORCPT ); Fri, 10 Sep 2010 07:57:31 -0400 Received: from mail-qw0-f46.google.com ([209.85.216.46]:57861 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753261Ab0IJL5a (ORCPT ); Fri, 10 Sep 2010 07:57:30 -0400 Received: by qwh6 with SMTP id 6so1371062qwh.19 for ; Fri, 10 Sep 2010 04:57:30 -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=Ax8xSelWJsDh9sotOcfIB3Uuet19/sngAjCIDVtK81U=; b=x9gTOnRQi7OyzRvFnuTBHt/ug2J4sHkQE2+lpGjzkpXnXfVThsC0ZpAmreauBEJgKb 89BETBBhPhk24SzV8qBEb8JNFcs5s2T1Gsfp2kEtPd0w0cEU/OSmgsoosTus88DnE1XU U2vzVnj0E8snFXZ9/Z4yVhgJ/nPEEKt8rO+yc= 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=LgX/8bCEmIKG7JsY66TvJHqZ7HtdWBHDvt3K8j5744YBUFvIy2ppIj7whe1Hnu9Zc9 dHXrk+sGJF/Txa4ZxkufgLF+Qnn8NbMc50FYEkUGxCuH76blXD3mjvHFFeNBBlS5jJgx 9FkRoUXfFm2lYO0gD0DRTbSkd8G7A+FDF+sMU= Received: by 10.229.225.196 with SMTP id it4mr533956qcb.46.1284119849840; Fri, 10 Sep 2010 04:57:29 -0700 (PDT) Received: from bicker ([41.205.146.22]) by mx.google.com with ESMTPS id f15sm2606857qcr.1.2010.09.10.04.57.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 10 Sep 2010 04:57:28 -0700 (PDT) Date: Fri, 10 Sep 2010 13:57:14 +0200 From: Dan Carpenter To: "John W. Linville" Cc: Matthieu CASTET , Stanislaw Gruszka , linux-wireless@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [patch] airo: remove pointless check Message-ID: <20100910115714.GE5959@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 (demeter1.kernel.org [140.211.167.41]); Fri, 10 Sep 2010 11:57:34 +0000 (UTC) diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 1d05445..d806497 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c @@ -3886,8 +3886,7 @@ static u16 setup_card(struct airo_info *ai, u8 *mac, int lock) } if ( basic_rate > 0 ) { for( i = 0; i < 8; i++ ) { - if ( ai->config.rates[i] == basic_rate || - !ai->config.rates ) { + if (ai->config.rates[i] == basic_rate) { ai->config.rates[i] = basic_rate | 0x80; break; }