From patchwork Thu Oct 6 08:39:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohammed Shafi Shajakhan X-Patchwork-Id: 9363855 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BCEC56077E for ; Thu, 6 Oct 2016 08:40:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC84F28E6F for ; Thu, 6 Oct 2016 08:40:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A159B28E76; Thu, 6 Oct 2016 08:40:18 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE9E928E75 for ; Thu, 6 Oct 2016 08:40:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942172AbcJFIkO (ORCPT ); Thu, 6 Oct 2016 04:40:14 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:25388 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941846AbcJFIkM (ORCPT ); Thu, 6 Oct 2016 04:40:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1475743212; x=1507279212; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=d8/FAa72278K9TCXUVyd+wuzIYuul3JdE3Xdk/d1rsk=; b=NI0vkVgf1zgkM09nVknHK2DkOijHy1tz5o9s0K0SZPYqnE4Ws+cePR6n /0WqpfSMox4e0YAUt1jnpsWhMpPWuqPL97aVpDu1Ok3CrtZKIqaq0b1VV /GYX0vNtf5gwdDjfLpKTOlhiVtpm+ACsyBdNxM0vC5U/j5Rajxnew27Vt I=; X-IronPort-AV: E=Sophos;i="5.31,453,1473145200"; d="scan'208";a="324857403" Received: from unknown (HELO ironmsg02-R.qualcomm.com) ([10.53.140.106]) by wolverine02.qualcomm.com with ESMTP; 06 Oct 2016 01:40:11 -0700 From: Mohammed Shafi Shajakhan X-IronPort-AV: E=McAfee;i="5700,7163,8309"; a="822598993" Received: from nasanexm02d.na.qualcomm.com ([10.85.0.44]) by ironmsg02-R.qualcomm.com with ESMTP/TLS/RC4-SHA; 06 Oct 2016 01:40:11 -0700 Received: from aphydexm01b.ap.qualcomm.com (10.252.127.11) by NASANEXM02D.na.qualcomm.com (10.85.0.44) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Thu, 6 Oct 2016 01:40:10 -0700 Received: from qcmail1.qualcomm.com (10.80.80.8) by aphydexm01b.ap.qualcomm.com (10.252.127.11) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Thu, 6 Oct 2016 14:10:02 +0530 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Thu, 06 Oct 2016 14:10:02 +0530 To: CC: , , "Mohammed Shafi Shajakhan" Subject: [PATCH v2 2/2] ath10k: Remove extraneous error message in tx alloc Date: Thu, 6 Oct 2016 14:09:48 +0530 Message-ID: <1475743188-12007-2-git-send-email-mohammed@qca.qualcomm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1475743188-12007-1-git-send-email-mohammed@qca.qualcomm.com> References: <1475743188-12007-1-git-send-email-mohammed@qca.qualcomm.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01B.na.qualcomm.com (10.85.0.82) To aphydexm01b.ap.qualcomm.com (10.252.127.11) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Mohammed Shafi Shajakhan Remove extraneous error message in 'ath10k_htt_tx_alloc_cont_frag_desc' as the caller 'ath10k_htt_tx_alloc' already dumps a proper error message Signed-off-by: Mohammed Shafi Shajakhan --- [v2 rebased over top of tree] drivers/net/wireless/ath/ath10k/htt_tx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/htt_tx.c b/drivers/net/wireless/ath/ath10k/htt_tx.c index 786fbd7..4255c1a 100644 --- a/drivers/net/wireless/ath/ath10k/htt_tx.c +++ b/drivers/net/wireless/ath/ath10k/htt_tx.c @@ -283,10 +283,8 @@ static int ath10k_htt_tx_alloc_cont_frag_desc(struct ath10k_htt *htt) htt->frag_desc.vaddr = dma_alloc_coherent(ar->dev, size, &htt->frag_desc.paddr, GFP_KERNEL); - if (!htt->frag_desc.vaddr) { - ath10k_err(ar, "failed to alloc fragment desc memory\n"); + if (!htt->frag_desc.vaddr) return -ENOMEM; - } return 0; }