Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752811AbeACOlZ (ORCPT + 1 other); Wed, 3 Jan 2018 09:41:25 -0500 Received: from mout.web.de ([212.227.17.11]:57520 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751602AbeACOlX (ORCPT ); Wed, 3 Jan 2018 09:41:23 -0500 To: netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Benjamin Herrenschmidt , Geoff Levand , Michael Ellerman , Paul Mackerras From: SF Markus Elfring Subject: [PATCH] ps3_gelic_net: Delete an error message for a failed memory allocation in gelic_descr_prepare_rx() Cc: LKML , kernel-janitors@vger.kernel.org Message-ID: <9613bfbf-11cc-1e66-484a-84fcda022861@users.sourceforge.net> Date: Wed, 3 Jan 2018 15:40:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:eVD+CRBAMBuQekX85b6eEilYcA7PbfGBHc4NeXHWJmMfKUAZDRB 1WkzzfMZw2UwVgTnWWDbUMf61Wsu6NhR8MjgmkHuErOa5BWd2GavgawkTyl6UlnRSX2mUlk D8m29XB+zZbsQcd6NCzUqsWcojI5xvlX/UhTsiYmLqbKccVkup7vpO20oCt74kr2LODGX1K NXgvqjSZou5ODkkTzoeGw== X-UI-Out-Filterresults: notjunk:1;V01:K0:6zqcwYfUJJ0=:cY44u3jst5Z++Q1EvZtfWa C4LMbNTZuefC0Z2gWVjZx3PRwNtfmnWwesKHawCGA6qyJLE78COH0Urx5QbWLIdFi23FWSwnP ffGtZ0t/vgkNZNT0UxVkuMWBDImxeIqh6fwvgZ+B7zvVgMCzFCih54TjOyakcJP5HY1q2E7c5 NOpU+YyT0c/CgFjdoU9CTxgAzIeP3uhMe3ykiGa5fPu7gP9RV+nEP5Yge1QW9SL6EKgBMZw5B f2M5EqBTbuP69KXbVIj+zVHl6wxvmy/r9MjLFZLQDc29gX2LuqK+4+iPxtkw7vMpnFh2v2tVU HBJsp3FT0ZzetnGiINROgr33daDRyyMMm+NiUM/Ezf+w7uRoIgzAJVPcbLIeDqGuYkZs1qNt4 klDe2/45ygm8mwjnK1kreSPl+HkvQqJCAFchxPck4MHMZ74u1DJAIWhRlpXwa6U9lZsJxCHl1 zYueduvqcS4GjBPUIrywFo/WjeOhPTUiDlXd2OOJ7qwiHeiRB5lAkr9LyyhkTwRYNagRnURZz QEmtnLoieiHLMn5V9S/FPxNQmFxYHTuWTRpqWl3ag1DRFOFqMHkNS5YSdGQu6z5XCbadV90gF xtRR847m88F/k6Tmn9kxgwtptMy/FCeb0nu0fxYceCUroftQ4Lc9Gz1iO1mwOBBiFHFEAa5tp oL2lvh2AhzKM4mku9JddhkOVC/RGsWRwsnWgKCxihUt8K1K3vRdM7DQ1WXFZ+OXT3pkMqrOxx Jw662gYHwQsgKi3Kjes6VXOqMmaHXnYd2aXqVmeA9BcVINN24IQiGk0NInpLyWusq+S8DwMAG aJBxTTw/RWlcr+kTOx6F1pgZOsErQo6C7fp7+0iRBYfFmOn2LI= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Wed, 3 Jan 2018 14:50:59 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/net/ethernet/toshiba/ps3_gelic_net.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/toshiba/ps3_gelic_net.c b/drivers/net/ethernet/toshiba/ps3_gelic_net.c index 88d74aef218a..644b875e324c 100644 --- a/drivers/net/ethernet/toshiba/ps3_gelic_net.c +++ b/drivers/net/ethernet/toshiba/ps3_gelic_net.c @@ -395,8 +395,6 @@ static int gelic_descr_prepare_rx(struct gelic_card *card, descr->skb = dev_alloc_skb(bufsize + GELIC_NET_RXBUF_ALIGN - 1); if (!descr->skb) { descr->buf_addr = 0; /* tell DMAC don't touch memory */ - dev_info(ctodev(card), - "%s:allocate skb failed !!\n", __func__); return -ENOMEM; } descr->buf_size = cpu_to_be32(bufsize); -- 2.15.1