From: Kalle Valo Date: Tue, 30 Apr 2013 17:30:10 +0300 Subject: [ath9k-devel] [PATCH 17/27] ath10k: fix a long line in ath10k_pci_hif_dump_area() In-Reply-To: <20130430142240.24217.41973.stgit@localhost6.localdomain6> References: <20130430142240.24217.41973.stgit@localhost6.localdomain6> Message-ID: <20130430143010.24217.12757.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 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index c973f6f..f8ade52 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -695,6 +695,7 @@ static void ath10k_pci_hif_dump_area(struct ath10k *ar) u32 reg_dump_area = 0; u32 reg_dump_values[REG_DUMP_COUNT_QCA988X]; u32 host_addr; + int ret; u32 i; host_addr = host_interest_item_address(HI_ITEM(hi_failure_state)); @@ -706,9 +707,10 @@ static void ath10k_pci_hif_dump_area(struct ath10k *ar) ath10k_err("target register Dump Location: 0x%08X\n", reg_dump_area); - if (ath10k_pci_diag_read_mem(ar, reg_dump_area, - ®_dump_values[0], - REG_DUMP_COUNT_QCA988X * sizeof(u32)) != 0) { + ret = ath10k_pci_diag_read_mem(ar, reg_dump_area, + ®_dump_values[0], + REG_DUMP_COUNT_QCA988X * sizeof(u32)); + if (ret != 0) { ath10k_err("could not dump FW Dump Area\n"); return; }