From patchwork Thu Jun 27 18:47:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11020281 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0DF991708 for ; Thu, 27 Jun 2019 18:47:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03AD6284F5 for ; Thu, 27 Jun 2019 18:47:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EBFAE28610; Thu, 27 Jun 2019 18:47:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A829B28564 for ; Thu, 27 Jun 2019 18:47:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=/nyIM13UV4NMWU13Eh9ntnPYTYSAhbzvMafpAjiiq6g=; b=ONs kQGwSHbPJwISWsf4YzWDe8Trna0eHHbFusNKcCDJ/w2VkR564x9U/+HecXwNeS8/XMunGwEoghdpb dfj1S0pmrYxaq6y+K0Nww6uzToKb7RnDK+exqXHnMz5UeTNSB2BgJliVE9oxSXU/y44qlsXqKq91A BcoXQZSHGjeZRTZZ3r+G6VtqeXRrlBAikkzXXYE+5UKb1AW02MSIisH0s1TNCzWTeQS0SS7ocA0Yw k2L+e8uCi2ODBUpRRH51BlEtZEqYCDEa8u0q6Pfg5UOxrrCY5kAKoN2lhzj4v65zFzG1CQCUKKRm+ MMp6qw8CcUHJJ6g6KRQ/CbGBRtjAuyw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hgZQm-0007bz-Ke; Thu, 27 Jun 2019 18:47:36 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hgZQl-0007bU-0v for ath10k@lists.infradead.org; Thu, 27 Jun 2019 18:47:36 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A5550609CD; Thu, 27 Jun 2019 18:47:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561661254; bh=FldDFuM+zrqioBxxDmOCZWXcYVFE1fZuoBm8rsdP6zw=; h=From:To:Cc:Subject:Date:From; b=J7AyuGtgE3HuS0xPYl44wyjfuF8vtqbPrrDFn/UFjlEwbWkjgE1u1Cp7+r2WehOuq OYI9NTQ1iDwhNy1mAutGMpCtS4adIdlo05zxWJUG+wWGx5xS6nEc6HIpX3TbJ5uhfO /9Ny/mt6oSe8OyYnnmhGgKs6gczjRYz5JKQDHgrI= Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 923E2602FE; Thu, 27 Jun 2019 18:47:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561661254; bh=FldDFuM+zrqioBxxDmOCZWXcYVFE1fZuoBm8rsdP6zw=; h=From:To:Cc:Subject:Date:From; b=J7AyuGtgE3HuS0xPYl44wyjfuF8vtqbPrrDFn/UFjlEwbWkjgE1u1Cp7+r2WehOuq OYI9NTQ1iDwhNy1mAutGMpCtS4adIdlo05zxWJUG+wWGx5xS6nEc6HIpX3TbJ5uhfO /9Ny/mt6oSe8OyYnnmhGgKs6gczjRYz5JKQDHgrI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 923E2602FE Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: ath10k@lists.infradead.org Subject: [PATCH 1/2] ath10k: remove unnecessary 'out of memory' message Date: Thu, 27 Jun 2019 21:47:29 +0300 Message-Id: <1561661250-30528-1-git-send-email-kvalo@codeaurora.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190627_114735_083604_37879A46 X-CRM114-Status: UNSURE ( 7.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-wireless@vger.kernel.org MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes checkpatch warning: drivers/net/wireless/ath/ath10k/swap.c:110: Possible unnecessary 'out of memory' message Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath10k/swap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/swap.c b/drivers/net/wireless/ath/ath10k/swap.c index 4dddeee684b4..7198a386f2fb 100644 --- a/drivers/net/wireless/ath/ath10k/swap.c +++ b/drivers/net/wireless/ath/ath10k/swap.c @@ -106,10 +106,8 @@ ath10k_swap_code_seg_alloc(struct ath10k *ar, size_t swap_bin_len) virt_addr = dma_alloc_coherent(ar->dev, swap_bin_len, &paddr, GFP_KERNEL); - if (!virt_addr) { - ath10k_err(ar, "failed to allocate dma coherent memory\n"); + if (!virt_addr) return NULL; - } seg_info->seg_hw_info.bus_addr[0] = __cpu_to_le32(paddr); seg_info->seg_hw_info.size = __cpu_to_le32(swap_bin_len);