Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751760AbeAAT5K (ORCPT + 1 other); Mon, 1 Jan 2018 14:57:10 -0500 Received: from mout.web.de ([212.227.15.14]:50367 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751617AbeAAT5I (ORCPT ); Mon, 1 Jan 2018 14:57:08 -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] igb: Delete an error message for a failed memory allocation in igb_enable_sriov() Message-ID: Date: Mon, 1 Jan 2018 20:56:55 +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:8niWltRMHnVTe705sbMdIC2mqEmJuhjsevB3RHLtVJ5pj8ihHVC rqsHnlx3v2GCRU+rVMMIKo8zYGZ03ed1x7GIr9w1W4r3kJ6aqfzUqs7xIDixZbJR9j7EFVY XzWDQoZh+N0hFgsFVg/KPK9jUh33KdMyHXvRo0ZtI/20T+A1bKy+S2IXJeuez8qkwwK1x3r GUjdbqWIxA+lVmYqYL98Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:S7TRhWcKKbM=:5fqsduzhxP/Et2VB/3QvrA yCoLv3a0QLCMzNoGxf9XMV1ZFh0jWjZZB4OWyxVq0PDh2mXsPfBMkKGdcCqcrqM8C1VJFAbh+ o8bIOGo6rCeg8/8LcZ52f/She0E2VNuOv37VxJxUyfWL4OoKwgdxR2ZXaqDUVSXvCPE1MFded /DfkyCvgS08SENm3EAgGptjmzlfDCfe9gDbX6PX5J+YIiYgC2V5eoRt3w/JQN0mT0LBH4QuQv 2kUe30HguRzlFFsc5jXXwRaeoHeC5dFGEGaYph6J2Ihhfyhb18WxeitUXp3bQQnMPVSUgKOBo +FpaLTog+K9j35vvaNTU2PnWXXCUWgfEb3rt5kLD6/agM0OxIVeygnzM+Alnhyu7h5dylZZbd YBIXBfkyNQa/vG4Q2NrnrmQ2/A92+vb7yQIavKm1QYP3ffNuuAlK3RrW2CM9xUhkEPFasfTZw mmGyFP/j6EA4DqRk8g9ZlhWJLJVuXzzMgS+Bw30y9c8m6e0LGOaOIeyRy0ouecRTD5koLt+cv TKT+ahJfB3ljGFgmmJszJx2F2gz0g+GlV4sqhTvQYlFsG8UB83FeflYJ0vgBzryDg6oKArAtF vBJKzlIbvLwtBn0QgLRmGfnmDoEBx4G2DMeHzG2h4JPQaxZfJ9i0VZHcQKNnSRj1ZuHU9I8AN voXuOQdQVkG+dHaSIaWGHyACC/xbRW6FfSWCNJ3qiBOKwaXzclPonWSuTQvyU5uUxABjqimFo L1++RqJFJAalxjGWZUAwl1gjyIeeGCY9ZyjmHPSh/j1n4ueftmFyrQanB/KdKo6wqQfnqURFO q5jNPe62zJ0hLJ0ZFnmuZ2Y88LF6HVeLNCF528zHpuHpcKDOls= 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:53:10 +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/igb/igb_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index e94d3c256667..1621aaa3eb28 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c @@ -3200,8 +3200,6 @@ static int igb_enable_sriov(struct pci_dev *pdev, int num_vfs) /* if allocation failed then we do not support SR-IOV */ if (!adapter->vf_data) { adapter->vfs_allocated_count = 0; - dev_err(&pdev->dev, - "Unable to allocate memory for VF Data Storage\n"); err = -ENOMEM; goto out; } -- 2.15.1