From patchwork Fri Jul 22 05:41:57 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 998222 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6M5hjaO010102 for ; Fri, 22 Jul 2011 05:43:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753392Ab1GVFnm (ORCPT ); Fri, 22 Jul 2011 01:43:42 -0400 Received: from wolverine01.qualcomm.com ([199.106.114.254]:3158 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753379Ab1GVFnm (ORCPT ); Fri, 22 Jul 2011 01:43:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qca.qualcomm.com; i=kvalo@qca.qualcomm.com; q=dns/txt; s=qcdkim; t=1311313422; x=1342849422; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; z=From:=20Kalle=20Valo=20|To:=20|CC:=20,=20Raja=20Mani=20|Subject: =20[PATCH=2024/31]=20ath6kl:=20Rearrange=20the=20variable =20and=20the=20value=20position=20in=20IF=20condition |Date:=20Fri,=2022=20Jul=202011=2008:41:57=20+0300 |Message-ID:=20<1311313324-6766-26-git-send-email-kvalo@q ca.qualcomm.com>|In-Reply-To:=20<1311313324-6766-1-git-se nd-email-kvalo@qca.qualcomm.com>|References:=20<131131332 4-6766-1-git-send-email-kvalo@qca.qualcomm.com> |MIME-Version:=201.0; bh=KKhsZHiZUhB95NjjqB0oS9WihBNRZl6kXRLNrQFj1ZY=; b=sawYXgdwFhA2PiSgmb0d6a/FLU4dbruw8XY7GluoeeqAtkvgvj35WEPB CWnJAKgf42UDyt5rySKQo1MGZRpNw7TBU0izTcWxXcnyEqSH/SZvbeabC LVRMnSpGmX7X0p/0BrpGbLrM1960WPAayC8SxVhLJKIanivE9iog9Kuzi Y=; X-IronPort-AV: E=McAfee;i="5400,1158,6414"; a="105201661" Received: from ironmsg04-l.qualcomm.com ([172.30.48.19]) by wolverine01.qualcomm.com with ESMTP; 21 Jul 2011 22:43:41 -0700 X-IronPort-AV: E=Sophos;i="4.67,244,1309762800"; d="scan'208";a="51413214" Received: from nasanexhc08.na.qualcomm.com ([172.30.39.7]) by Ironmsg04-L.qualcomm.com with ESMTP/TLS/AES128-SHA; 21 Jul 2011 22:43:32 -0700 Received: from NASJOEXHC01.na.qualcomm.com (10.234.56.15) by nasanexhc08.na.qualcomm.com (172.30.39.7) with Microsoft SMTP Server (TLS) id 14.1.323.0; Thu, 21 Jul 2011 22:43:31 -0700 Received: from localhost.localdomain (10.234.11.69) by qcamail1.atheros.com (10.234.56.15) with Microsoft SMTP Server (TLS) id 14.1.323.0; Thu, 21 Jul 2011 22:43:27 -0700 From: Kalle Valo To: CC: , Raja Mani Subject: [PATCH 24/31] ath6kl: Rearrange the variable and the value position in IF condition Date: Fri, 22 Jul 2011 08:41:57 +0300 Message-ID: <1311313324-6766-26-git-send-email-kvalo@qca.qualcomm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1311313324-6766-1-git-send-email-kvalo@qca.qualcomm.com> References: <1311313324-6766-1-git-send-email-kvalo@qca.qualcomm.com> MIME-Version: 1.0 X-Originating-IP: [10.234.11.69] 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.6 (demeter2.kernel.org [140.211.167.43]); Fri, 22 Jul 2011 05:43:45 +0000 (UTC) From: Raja Mani Signed-off-by: Raja Mani Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath6kl/htc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/wireless/ath/ath6kl/htc.c b/drivers/net/wireless/ath/ath6kl/htc.c index 9d9948e..5580e22 100644 --- a/drivers/net/wireless/ath/ath6kl/htc.c +++ b/drivers/net/wireless/ath/ath6kl/htc.c @@ -1229,7 +1229,7 @@ static void htc_proc_cred_rpt(struct htc_target *target, endpoint->ep_st.cred_rpt_from_other += 1; } - if (ENDPOINT_0 == rpt->eid) + if (rpt->eid == ENDPOINT_0) /* always give endpoint 0 credits back */ endpoint->cred_dist.credits += rpt->credits; else {