From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755257Ab1H2VUW (ORCPT ); Mon, 29 Aug 2011 17:20:22 -0400 Received: from perches-mx.perches.com ([206.117.179.246]:56863 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754317Ab1H2VUS (ORCPT ); Mon, 29 Aug 2011 17:20:18 -0400 From: Joe Perches To: Ursula Braun , linux390@de.ibm.com Cc: "David S. Miller" , linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/24] iucv: Remove unnecessary OOM logging messages Date: Mon, 29 Aug 2011 14:17:30 -0700 Message-Id: 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/iucv/iucv.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/net/iucv/iucv.c b/net/iucv/iucv.c index 403be43..5cf493d 100644 --- a/net/iucv/iucv.c +++ b/net/iucv/iucv.c @@ -1815,10 +1815,9 @@ static void iucv_external_interrupt(unsigned int ext_int_code, } BUG_ON(p->iptype < 0x01 || p->iptype > 0x09); work = kmalloc(sizeof(struct iucv_irq_list), GFP_ATOMIC); - if (!work) { - pr_warning("iucv_external_interrupt: out of memory\n"); + if (!work) return; - } + memcpy(&work->data, p, sizeof(work->data)); spin_lock(&iucv_queue_lock); if (p->iptype == 0x01) { -- 1.7.6.405.gc1be0