From: Emmanuel Grumbach Date: Mon, 9 Dec 2013 07:47:46 +0000 (+0200) Subject: iwlwifi: pcie: clean up ICT allocation code X-Git-Tag: v3.14-rc1~94^2~238^2^2~83^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eef31718ebfa6b56f9d32ff25110ede982abecdc;p=pandora-kernel.git iwlwifi: pcie: clean up ICT allocation code Since iwl_trans_pcie_alloc_ict is called in the PCIe allocation code, we always set CSR_INT_BIT_RX_PERIODIC. Move that bit to the default list of interrupts we enable and simplify the code. Also use dma_zalloc_ and avoid to memset the memory afterwards. trans_pcie->ict_index is 0 since trans_pcie has just been kzalloced, remove the redundant assignment. Reviewed-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- Reading git-diff-tree failed