From patchwork Mon Jan 1 19:56:55 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: 854359 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.138; helo=whitealder.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3z9Sdm5Mgyz9t2Q for ; Tue, 2 Jan 2018 06:57:16 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C752D81DA5; Mon, 1 Jan 2018 19:57:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iXo+IvnUJWSX; Mon, 1 Jan 2018 19:57:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id DF9B681C66; Mon, 1 Jan 2018 19:57:13 +0000 (UTC) X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 083041C03C8 for ; Mon, 1 Jan 2018 19:57:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 031D481C66 for ; Mon, 1 Jan 2018 19:57:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fAi3r+PR5Q3N for ; Mon, 1 Jan 2018 19:57:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mout.web.de (mout.web.de [212.227.15.14]) by whitealder.osuosl.org (Postfix) with ESMTPS id E27E381C58 for ; Mon, 1 Jan 2018 19:57:10 +0000 (UTC) Received: from [192.168.1.3] ([92.228.170.170]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MLgCx-1eVp5V2tXv-000rlJ; Mon, 01 Jan 2018 20:56:58 +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: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-Language: en-GB 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= Subject: [Intel-wired-lan] [PATCH] igb: Delete an error message for a failed memory allocation in igb_enable_sriov() 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: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 Tested-by: Aaron Brown --- 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; }