From patchwork Mon Jan 1 19:43:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 854353 X-Patchwork-Delegate: jeffrey.t.kirsher@intel.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=osuosl.org (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3z9SLT36Q1z9sRW for ; Tue, 2 Jan 2018 06:43:59 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 24E3186B77; Mon, 1 Jan 2018 19:43:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ClOVefC-S_Kl; Mon, 1 Jan 2018 19:43:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5B9AB8695F; Mon, 1 Jan 2018 19:43:57 +0000 (UTC) X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 91ECB1C0AD1 for ; Mon, 1 Jan 2018 19:43:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8D1052A15D for ; Mon, 1 Jan 2018 19:43:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WHhgFTI6gPF5 for ; Mon, 1 Jan 2018 19:43:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mout.web.de (mout.web.de [212.227.15.3]) by silver.osuosl.org (Postfix) with ESMTPS id 94BB0273A1 for ; Mon, 1 Jan 2018 19:43:55 +0000 (UTC) Received: from [192.168.1.3] ([92.228.170.170]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MPHFI-1eaVqd0Dr6-004Rsk; Mon, 01 Jan 2018 20:43:39 +0100 To: netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, Jeff Kirsher From: SF Markus Elfring Message-ID: Date: Mon, 1 Jan 2018 20:43:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Language: en-GB X-Provags-ID: V03:K0:IGhrQktGrwcOyKoHR0KCxsHzIYlFazKyvGKkH+Ohv4Ku+TVisAn JPPnorUxAFn5fOGFMlujR/iew0Qy88nsnopqwSuQsqHJQzQS4ENF6n9n9r62dndohMH7CIZ t8p+1xUmD6bIOnWhAFVfMtrbhc+bb8u7X6w7oMh9X+XvZg67KhAp38yh8n51intG9ik+bG+ U8Pl6Ib4WKt4lpu0LZ7Wg== X-UI-Out-Filterresults: notjunk:1; V01:K0:KIX28HvLtfk=:uuQASGdMBFWDHQfqh1GE0W Ak5lVy1pV8LKDWcodlVzSFTv3obh/KWD4U49GMaEnjddOEnGjM53XwUj2TGmzjjXrAYXNsDnJ yUPsm/tGk4nb/WN4/vl0/fq3KYlmmmLyizRGVei/Nk3aEmJgxIUMFcRHmosrCNd9u0zMKTHvZ ryccOxUL6uH+e/Q8EJODh1bDHKrT7qaEUELwBT8XyA6lRkeeObuNY8yS3FkC3AMktMefltWM4 ar/9lm14L4nQWUM8q1XrN3wlenpTKaEwUVHVubgVobp3c9b8Y0jj9+T5V+2aqjYa7jq9rDTlL 6dJJL0ybq6mPha53ZSfI6uXiCw9QWOBTAgL8HbbCfraYYJ/XdcBhWPT18zyvolM5BJkql3V+F eWJlopI1wJHEm6fuwoPCsm1PD2The1oeIfDy8wdx+p1n+TGIVSLNFIlYw6MHmvwnNAyz/EOUy 9SwN51sH0GVYvsX69CRc5ouL2l1iKOQO0BwBB8AcuejX5zN1HF0cHl65mR+6D7DgZpD55DZcJ kSB8ZgcpuO9fUwP4apH4ej7cFz0TK3ZqM6MC6AeGP7yj89oQH4gmrKdaYawr1wnNVYjBiWllm PvsON08u06jWtvqgRnJnMoW8sr4BaZb4BpL1Ig3MBdmJLN9ZBjEiJr9/31zAum8kh/pMReKJp U8SLCY9lIewKqZ76+elfLmLrMwKDqbcBaC72m08khNwxWYRLh6CK0fUSJ9ZfpJxOW0U1wNB3B sQp/Izka/jP0bKUEbOOksK4H4DiOYp+xAF79teDjRI9LQZF5VYVnLBpOTMI/Zn7rYsPkLw374 obPDFJC3U+kSzNR+IdfxDwe2HE1g+jaWIpod/pP2c6HG2UTAYA= Subject: [Intel-wired-lan] [PATCH] i40e: Delete an error message for a failed memory allocation in i40e_init_interrupt_scheme() X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.24 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-janitors@vger.kernel.org, LKML Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" From: Markus Elfring Date: Mon, 1 Jan 2018 20:38:14 +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 Acked-by: Jesse Brandeburg Tested-by: Andrew Bowers --- drivers/net/ethernet/intel/i40e/i40e_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c index 4a964d6e4a9e..fd9ac22ee65a 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c @@ -10445,10 +10445,9 @@ static int i40e_init_interrupt_scheme(struct i40e_pf *pf) /* set up vector assignment tracking */ size = sizeof(struct i40e_lump_tracking) + (sizeof(u16) * vectors); pf->irq_pile = kzalloc(size, GFP_KERNEL); - if (!pf->irq_pile) { - dev_err(&pf->pdev->dev, "error allocating irq_pile memory\n"); + if (!pf->irq_pile) return -ENOMEM; - } + pf->irq_pile->num_entries = vectors; pf->irq_pile->search_hint = 0;