Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1863968pxj; Sun, 13 Jun 2021 00:44:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/9Y2aOd0IhghPNKfwK0uIk1b0qXdUO63s0uolO4hvECXWryYXT7qfAQRpOWmSe93XbMr4 X-Received: by 2002:a17:906:b34e:: with SMTP id cd14mr10618889ejb.69.1623570296586; Sun, 13 Jun 2021 00:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623570296; cv=none; d=google.com; s=arc-20160816; b=dtlF1bLwJDtIRcSTPIDRB2UmQVaSopzpZ0J3wbaiG8pMGRMYNrTtKIS9eVZxn4jOFd nFqRUtLRaheBT41EuUwNNFVOddDbD85yAnU7U4QKJ++uyi1cP7bZtna+O0TgDWd+avP/ FfhO/2B8ZmNc8zDDyGG4KDYfmiQDuzDC5fQFzM4djqhH54nSDGKxenHTC50dwzNCuj3h +FSWFXlJf3HsnFqKUEl5ZCXM4bjxWr0oliq6DvVM1Zxp6aXBEHIjs2G+JxIbGhlJIFyM roR8GwApQDzy305gvNYEwsPRKZPL0gmj+hFbAdg4nXIgXfH1ilFl/FNoRkXB01z3a16x bBog== 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=BCuAdrrKadZbdp8uY4q9C+REhj24SVxHL00iWhv7Jw0=; b=cYI2loGaWTw4eoMNbIbCvzJUdJmjflhCMOaqNX4tlaBZMKzC/uRVP3/Ab4yuuRz801 N7gCxwuAGX6OkdjyHHCQqLscFdTO6eyUlwbA8zsdT8NnQcMnJPKSacxFZBzZrN6xp0SQ WyNzyuiuyARQNioVJJFOUrgfqfvqYScJ0y1Y2Kq3OiTaz2X5wvbhl4cqpPuzRwpIOC/s nxMvWfzlXgslrVz/+QclVswwx+Bp2RfbUtlttmc5YzWRXSNdjZmzW6av/fwH3YE+472t BorjlmcCHEMT7wxFncY0IdsHp60tr4LiJmf2T7IKl6aso2iNMZ3bkKnUZFIKYR8f6oJz W2Lw== 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 ms23si8579352ejc.115.2021.06.13.00.44.34; Sun, 13 Jun 2021 00:44:56 -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 S231174AbhFMHoE (ORCPT + 99 others); Sun, 13 Jun 2021 03:44:04 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:6464 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231241AbhFMHnk (ORCPT ); Sun, 13 Jun 2021 03:43:40 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G2mfW1GTFzZgfZ; Sun, 13 Jun 2021 15:38:43 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Sun, 13 Jun 2021 15:41:36 +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; Sun, 13 Jun 2021 15:41:35 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH net-next 11/11] net: z85230: remove unnecessary out of memory message Date: Sun, 13 Jun 2021 15:38:23 +0800 Message-ID: <1623569903-47930-12-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623569903-47930-1-git-send-email-huangguangbin2@huawei.com> References: <1623569903-47930-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) 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 17bdf5e..aac6f31 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