Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752588AbeAJKWh (ORCPT + 1 other); Wed, 10 Jan 2018 05:22:37 -0500 Received: from mout.web.de ([212.227.17.12]:64745 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753277AbeAJKWc (ORCPT ); Wed, 10 Jan 2018 05:22:32 -0500 Subject: [PATCH 1/4] sgi-xpnet: Delete an error message for a failed memory allocation in two functions From: SF Markus Elfring To: kernel-janitors@vger.kernel.org, Arnd Bergmann , Cliff Whickman , Greg Kroah-Hartman , Robin Holt Cc: LKML References: Message-ID: Date: Wed, 10 Jan 2018 11:22:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:7yd9u6RppGzR6CAqDttbSocfJEFq9B+VeRurq3jaQyVjTDbOHJ7 95kPMF3S0XFWk6XWBfDZ/zx5NjMz94XEWnJcuTNFq0G5WTyVJ6hGOqZS9sX6vnuPijdudN/ TJOslgb2dJX2/D1zbrGgAl22A+re7pyEkiHWsn9c/AyUmzgIMhFzT18o2Or+rv3rmIYRm7W 7dwDYiNECkiThO27lup7w== X-UI-Out-Filterresults: notjunk:1;V01:K0:njFwF33NrJg=:w7reZkA9m++Zi+W5QZZnS8 bgdCAZvCXYbJkuwxrUdbmHRy2sBGLNdGFAuO2VF4oBvPMg1wYE5yB0igQwokOUgdiJP42Akdm 4FhVHkyh9WQE2lr34+Ti5FitiPuYAjTwXX9+T6tUszVPADQvpVsmugD/3M2fpzQMiqKrx31k9 SUtf4Kwhhs637Ix8r2NMMMWRe0M958vBIVDj4I5cMDaLpvwdBN6flxzLodTOJ/WO/FA/IdGyx WNHC1LM30n27uTggK3GNtGXILCYXf41XC99DznW2r44wIsFKr7jbko/ZegYcNMCuLppzdt6/s yGOHbHb8g0tG8RpND9V4ODEkpa+E6quH7NWSGB8J2ckL+F9fYps3mrPIA9gU2pIEsuZRLCWVx PkIGgAiViedeZugW3IyJyR0qHweCPhbr5/wkUS2Lsrtp+/1zv9jAhffQvBKtVnzRdYaaDsXgK 5Gu+8+CD6WInS42kjdYoVnQGX1CqAikRiK+itPeYYS8yzAPdxppjvIdidtWIsTJ8+6a4z4To8 jy7f3rQEKShPulVz+5KFE6cCDCXGtJBrk3EYPgO1GBxOi29TW0YXqcLFaMYBkWL+bBjxOytRO LEeNB0aj54dEGe+Jk91UWvB7MGVfJYuQE/Eqlnft/sp0qn3YeLiR6B7FSX2tNxfb5nE4jrlh3 ip+bIx7G6VIiSsQ45pbKMvpA5N5DlLj7V6MWnHt8GpQKzXj+rzq6y2e2t0BF/Kx9fH+/+7MUa n3HR+RvSqZSS5PexwFhirKau9xxSi3ni8bmE8EGYNvj50g+mw/sUpmvV3Eui2kTfVWZeQp8C2 ytk+URIYYhPRtsikb0Lg3KOsp29z+ksGJauvCMRhdjdIzAtOXY= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Wed, 10 Jan 2018 10:46:46 +0100 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/misc/sgi-xp/xpnet.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/misc/sgi-xp/xpnet.c b/drivers/misc/sgi-xp/xpnet.c index 0c26eaf5f62b..e13aa6c74028 100644 --- a/drivers/misc/sgi-xp/xpnet.c +++ b/drivers/misc/sgi-xp/xpnet.c @@ -168,9 +168,6 @@ xpnet_receive(short partid, int channel, struct xpnet_message *msg) /* reserve an extra cache line */ skb = dev_alloc_skb(msg->size + L1_CACHE_BYTES); if (!skb) { - dev_err(xpnet, "failed on dev_alloc_skb(%d)\n", - msg->size + L1_CACHE_BYTES); - xpc_received(partid, channel, (void *)msg); xpnet_device->stats.rx_errors++; @@ -432,9 +429,6 @@ xpnet_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) */ queued_msg = kmalloc(sizeof(struct xpnet_pending_msg), GFP_ATOMIC); if (queued_msg == NULL) { - dev_warn(xpnet, "failed to kmalloc %ld bytes; dropping " - "packet\n", sizeof(struct xpnet_pending_msg)); - dev->stats.tx_errors++; dev_kfree_skb(skb); return NETDEV_TX_OK; -- 2.15.1