Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3280898pxj; Mon, 14 Jun 2021 19:50:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwn544qoF7k1vhBL2oHJnCf81YdSuwv+cd97iOjCsVkak5YwWlnZn9FqZVVTDBmQ4TlqbD/ X-Received: by 2002:a50:ff0a:: with SMTP id a10mr20607234edu.273.1623725458660; Mon, 14 Jun 2021 19:50:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623725458; cv=none; d=google.com; s=arc-20160816; b=B35FpnsxdhDBuR0RXd1CuI7p/47/edXvMumu/Pr1miQ6TiRHc2Eodb39KHvI4NKOY0 h0hiXui3dvmoPRXpuC2qZ33prN0HSiDaYYx3Y+3iJNjvEbPiK/dYbANucPLWNBM20nbJ MfGFP9F6b4XF6P2gMnh7BrXW2ISmLSzSv/pajLhvyClQBV++B4yIajW5Ib8lEhaRMgWW QMGPUYuOlshu3ZjFpi4mqO/DceTQltf1kTK45pWO7zKtoK9MpEFkuVqatLuv0V0VJrQB EfL/y0LuqjDB7lbv0AMXuJtLCNg6gr6Cwhk346dhmUBUxSr9HXJpAcZuQ62Q7E1J+cN5 doyg== 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=KSMnHwf6dzjnXB6o8L3WRzv5rjIqq9ch9l7KFwNnFfY=; b=NhduDMq+AIL7fMVfJVobviqLXwnPApG4+6PU3XHZoaKIMoqIGgTczfAMPmJIPEnpOc DIHdYKqZBIevppJjmxTndciYfkGUivsdsyAkaSwzWrKVzLxeDQAd0rqoWEsXUzLPW6ba JZ6MihzWz4B3QcUfpF39bWkDkvV6PNPfLXUvm5i/POfVPVY4MoZY2ziXdPqGeUkFNV80 st5Zw2l0bXsi4ZkER3YGhCHmWukrWxJbc8glXR6BGZzxouv8BNsi+WShgaDQ7XFa9EKa dZRCBaLofXcKhv6spucZjlLOuiCFwzgEruMbrUGu4gaDZHpdbEbwCCI57DydE2N4Gdb4 H16Q== 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 da25si12828520edb.3.2021.06.14.19.50.36; Mon, 14 Jun 2021 19:50:58 -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 S229870AbhFOCtk (ORCPT + 99 others); Mon, 14 Jun 2021 22:49:40 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:7261 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230376AbhFOCtF (ORCPT ); Mon, 14 Jun 2021 22:49:05 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4G3szF3PxDz1BMbF; Tue, 15 Jun 2021 10:42:01 +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; Tue, 15 Jun 2021 10:46:58 +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; Tue, 15 Jun 2021 10:46:58 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH V2 net-next 10/10] net: z85230: remove unnecessary out of memory message Date: Tue, 15 Jun 2021 10:43:45 +0800 Message-ID: <1623725025-50976-11-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623725025-50976-1-git-send-email-huangguangbin2@huawei.com> References: <1623725025-50976-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) 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 621f730..982a034 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