Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754025AbeAATom (ORCPT + 1 other); Mon, 1 Jan 2018 14:44:42 -0500 Received: from mout.web.de ([212.227.15.3]:62835 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932221AbeAATns (ORCPT ); Mon, 1 Jan 2018 14:43:48 -0500 To: netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, Jeff Kirsher Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] i40e: Delete an error message for a failed memory allocation in i40e_init_interrupt_scheme() 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-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit 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= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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 --- 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; -- 2.15.1