Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2676644pxj; Mon, 14 Jun 2021 04:43:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyisYzeSxZBDVpaH3Xu3a1CEei+cF7l4qczWtocABJKeXDJgjLPnrp7lKRcr+QDLQKzSrZx X-Received: by 2002:aa7:c818:: with SMTP id a24mr16988562edt.53.1623671017380; Mon, 14 Jun 2021 04:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623671017; cv=none; d=google.com; s=arc-20160816; b=f//ALFx0PyV4tsxq8HTUm8iOB6Pe1C9+M8JnIzzqiCxZgrhROr2NKzIQiLlmVJNcj6 baYd99HDsuTn0RBDCjQIa8mvw7b/ToYdEO01UwH7VHH1h7CjUpDyJE2baIXcn2w78v3C eMxV3U1jE9mSd/CM8NzyYTkFoyhvzneNdw/x5ARDjYOR/KsWbpCWuvEI83PTOdah9o6/ LM7OsWv3AF72BOrv1IFiZmbGLWIQkdZIFLOViEda2FyPzuXBQn8daJOh4FsqMRNi8fYt DJRRa2u9pLYwihsR4DPYyOHa2m443fE6Vg14ft7v2l40gU+FE+XukTj13Ro0kU6VczV4 8UDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=TAi3ZTGL7P7G3VCpqmZaiZ5Q50/71Jyla+igmwUcVys=; b=02BA+x15XGUhgD/0rhB3earR0mJ9yUCaeC9a6iHlDL7ODUA/go3SfHUUyPpTpPqbfW MZ+gtliFDsY9x/WB2LSezup1lRXngkmALATv+33FM5M502/Va5ZSLNiPdm5lYYJylze8 XN18TSYn1vbfZF2+KbZdO8cU+V04+MxAFQMIurwRWDIny1bE6u2NoXjir9aRvhvXmRRb B1VC6EziFLO0Ep9wB4vQ2ffBQjLjdZIf3xejX5RIhBkWRGGu0qgDLU5Ysy6RgTmIB7+6 TDipaM6i0G5weeC9N0FyDVQ6kRLsgZBtbtqpZCiFb3d3UJEBzCjes9v2Z5HspM97mgvT vImA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id la15si11666636ejb.724.2021.06.14.04.43.13; Mon, 14 Jun 2021 04:43:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236545AbhFNLnX (ORCPT + 99 others); Mon, 14 Jun 2021 07:43:23 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:6467 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236585AbhFNLeJ (ORCPT ); Mon, 14 Jun 2021 07:34:09 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G3Tjy6xszzZh4l; Mon, 14 Jun 2021 19:29:10 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Mon, 14 Jun 2021 19:32:04 +0800 Received: from localhost.localdomain (10.67.165.24) by dggemi759-chm.china.huawei.com (10.1.198.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Mon, 14 Jun 2021 19:32:04 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH V2 net-next 11/11] net: z85230: remove unnecessary out of memory message Date: Mon, 14 Jun 2021 19:28:51 +0800 Message-ID: <1623670131-49973-12-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623670131-49973-1-git-send-email-huangguangbin2@huawei.com> References: <1623670131-49973-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggemi759-chm.china.huawei.com (10.1.198.145) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Li This patch removes unnecessary out of memory message, to fix the following checkpatch.pl warning: "WARNING: Possible unnecessary 'out of memory' message" Signed-off-by: Peng Li Signed-off-by: Guangbin Huang --- drivers/net/wan/z85230.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/wan/z85230.c b/drivers/net/wan/z85230.c index be4928f..756dddd 100644 --- a/drivers/net/wan/z85230.c +++ b/drivers/net/wan/z85230.c @@ -1531,10 +1531,9 @@ static void z8530_rx_done(struct z8530_channel *c) RT_UNLOCK; c->skb2 = dev_alloc_skb(c->mtu); - if (!c->skb2) - netdev_warn(c->netdevice, "memory squeeze\n"); - else + if (c->skb2) skb_put(c->skb2, c->mtu); + c->netdevice->stats.rx_packets++; c->netdevice->stats.rx_bytes += ct; } -- 2.8.1