Return-path: Received: from mail-iw0-f174.google.com ([209.85.214.174]:42461 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755394Ab0LBMQ1 (ORCPT ); Thu, 2 Dec 2010 07:16:27 -0500 Received: by iwn42 with SMTP id 42so887974iwn.19 for ; Thu, 02 Dec 2010 04:16:26 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20101202120925.GM12908@vasanth-laptop> References: <1291288031-3409-1-git-send-email-vasanth@atheros.com> <1291288031-3409-17-git-send-email-vasanth@atheros.com> <20101202120925.GM12908@vasanth-laptop> From: Julian Calaby Date: Thu, 2 Dec 2010 23:16:05 +1100 Message-ID: Subject: Re: [PATCH V2 16/27] ath9k_hw: Read and configure antenna diversity control for AR9485 To: Vasanthakumar Thiagarajan Cc: Vasanth Thiagarajan , "linville@tuxdriver.com" , "linux-wireless@vger.kernel.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, Dec 2, 2010 at 23:09, Vasanthakumar Thiagarajan wrote: > No, these are to separate things. Are you sure? you seem to be doing: if (!AR_SREV_9485(ah)) { // CODE } if (AR_SREV_9485(ah)) { // MORE CODE } which I'm certain can be simlified as: if (!AR_SREV_9485(ah)) { // CODE } else { // MORE CODE } unless you're telling me that the value of AR_SREV_9485(ah) can change in the course of the first statement. Thanks, -- Julian Calaby Email: julian.calaby@gmail.com Profile: http://www.google.com/profiles/julian.calaby/ .Plan: http://sites.google.com/site/juliancalaby/