From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755380Ab1H2VV4 (ORCPT ); Mon, 29 Aug 2011 17:21:56 -0400 Received: from perches-mx.perches.com ([206.117.179.246]:52024 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754500Ab1H2VVw (ORCPT ); Mon, 29 Aug 2011 17:21:52 -0400 From: Joe Perches To: Jon Maloy , Allan Stephens Cc: "David S. Miller" , netdev@vger.kernel.org, tipc-discussion@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH 20/24] tipc: Remove unnecessary OOM logging messages Date: Mon, 29 Aug 2011 14:17:39 -0700 Message-Id: <22c8098d9704a07ce8ccb5b13c6ac531dbb9dd1e.1314650069.git.joe@perches.com> X-Mailer: git-send-email 1.7.6.405.gc1be0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Removing unnecessary messages saves code and text. Site specific OOM messages are duplications of a generic MM out of memory message and aren't really useful, so just delete them. Signed-off-by: Joe Perches --- net/tipc/link.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/net/tipc/link.c b/net/tipc/link.c index f89570c..5c96289 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c @@ -325,10 +325,8 @@ struct link *tipc_link_create(struct tipc_node *n_ptr, } l_ptr = kzalloc(sizeof(*l_ptr), GFP_ATOMIC); - if (!l_ptr) { - warn("Link creation failed, no memory\n"); + if (!l_ptr) return NULL; - } l_ptr->addr = peer; if_name = strchr(b_ptr->name, ':') + 1; -- 1.7.6.405.gc1be0