From: Kalle Valo Date: Tue, 30 Apr 2013 20:52:22 +0300 Subject: [ath9k-devel] [PATCH 03/10] ath10k: fix a long line in ath10k_pci_start_ce() In-Reply-To: <20130430175053.5523.85177.stgit@localhost6.localdomain6> References: <20130430175053.5523.85177.stgit@localhost6.localdomain6> Message-ID: <20130430175222.5523.14901.stgit@localhost6.localdomain6> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath10k/pci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 266570d..a25a424 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -763,7 +763,7 @@ static void ath10k_pci_start_ce(struct ath10k *ar) const struct ce_attr *attr; struct hif_ce_pipe_info *pipe_info; struct ath10k_pci_compl *compl; - int i, pipe_num, completions; + int i, pipe_num, completions, disable_interrupts; spin_lock_init(&ar_pci->compl_lock); INIT_LIST_HEAD(&ar_pci->compl_process); @@ -782,9 +782,10 @@ static void ath10k_pci_start_ce(struct ath10k *ar) completions = 0; if (attr->src_nentries) { + disable_interrupts = attr->flags & CE_ATTR_DIS_INTR; ath10k_ce_send_cb_register(pipe_info->ce_hdl, ath10k_pci_ce_send_done, - attr->flags & CE_ATTR_DIS_INTR); + disable_interrupts); completions += attr->src_nentries; pipe_info->num_sends_allowed = attr->src_nentries - 1; }