{"id":806993,"url":"http://patchwork.ozlabs.org/api/1.0/patches/806993/?format=json","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/1.0/projects/2/?format=json","name":"Linux PPC development","link_name":"linuxppc-dev","list_id":"linuxppc-dev.lists.ozlabs.org","list_email":"linuxppc-dev@lists.ozlabs.org","web_url":"https://github.com/linuxppc/wiki/wiki","scm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git","webscm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/"},"msgid":"<20170829073404.8885-2-aik@ozlabs.ru>","date":"2017-08-29T07:33:59","name":"[kernel,v2,1/6] powerpc/pci: Remove unused parameter from add_one_dev_pci_data()","commit_ref":"5f600b17d190aa0e4011557fd6abb05908a53a0d","pull_url":null,"state":"accepted","archived":false,"hash":"462d848dabfde77daa982772ef7122b2a0b50798","submitter":{"id":7621,"url":"http://patchwork.ozlabs.org/api/1.0/people/7621/?format=json","name":"Alexey Kardashevskiy","email":"aik@ozlabs.ru"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170829073404.8885-2-aik@ozlabs.ru/mbox/","series":[{"id":322,"url":"http://patchwork.ozlabs.org/api/1.0/series/322/?format=json","date":"2017-08-29T07:34:01","name":"powerpc/eeh: Some cleanups","version":2,"mbox":"http://patchwork.ozlabs.org/series/322/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/806993/checks/","tags":{},"headers":{"Return-Path":"<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xhLCl2djwz9t3J\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 29 Aug 2017 17:40:51 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xhLCl1hjpzDrWn\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 29 Aug 2017 17:40:51 +1000 (AEST)","from ozlabs.ru (ozlabs.ru [107.173.13.209])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xhL4c5b1BzDqZ0\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tTue, 29 Aug 2017 17:34:40 +1000 (AEST)","from vpl1.ozlabs.ibm.com (localhost [IPv6:::1])\n\tby ozlabs.ru (Postfix) with ESMTP id DB61F3A6002C;\n\tTue, 29 Aug 2017 03:35:16 -0400 (EDT)"],"From":"Alexey Kardashevskiy <aik@ozlabs.ru>","To":"linuxppc-dev@lists.ozlabs.org","Subject":"[PATCH kernel v2 1/6] powerpc/pci: Remove unused parameter from\n\tadd_one_dev_pci_data()","Date":"Tue, 29 Aug 2017 17:33:59 +1000","Message-Id":"<20170829073404.8885-2-aik@ozlabs.ru>","X-Mailer":"git-send-email 2.11.0","In-Reply-To":"<20170829073404.8885-1-aik@ozlabs.ru>","References":"<20170829073404.8885-1-aik@ozlabs.ru>","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Cc":"Alexey Kardashevskiy <aik@ozlabs.ru>,\n\tAndrew Donnellan <andrew.donnellan@au1.ibm.com>","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"},"content":"pdev is always NULL, remove it.\n\nTo make checkpatch.pl happy, this also removes the \"out of memory\"\nmessage.\n\nSigned-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>\nReviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>\nAcked-by: Russell Currey <ruscur@russell.cc>\n---\n arch/powerpc/kernel/pci_dn.c | 14 ++------------\n 1 file changed, 2 insertions(+), 12 deletions(-)","diff":"diff --git a/arch/powerpc/kernel/pci_dn.c b/arch/powerpc/kernel/pci_dn.c\nindex 592693437070..0256372b72de 100644\n--- a/arch/powerpc/kernel/pci_dn.c\n+++ b/arch/powerpc/kernel/pci_dn.c\n@@ -139,7 +139,6 @@ struct pci_dn *pci_get_pdn(struct pci_dev *pdev)\n \n #ifdef CONFIG_PCI_IOV\n static struct pci_dn *add_one_dev_pci_data(struct pci_dn *parent,\n-\t\t\t\t\t   struct pci_dev *pdev,\n \t\t\t\t\t   int vf_index,\n \t\t\t\t\t   int busno, int devfn)\n {\n@@ -150,10 +149,8 @@ static struct pci_dn *add_one_dev_pci_data(struct pci_dn *parent,\n \t\treturn NULL;\n \n \tpdn = kzalloc(sizeof(*pdn), GFP_KERNEL);\n-\tif (!pdn) {\n-\t\tdev_warn(&pdev->dev, \"%s: Out of memory!\\n\", __func__);\n+\tif (!pdn)\n \t\treturn NULL;\n-\t}\n \n \tpdn->phb = parent->phb;\n \tpdn->parent = parent;\n@@ -167,13 +164,6 @@ static struct pci_dn *add_one_dev_pci_data(struct pci_dn *parent,\n \tINIT_LIST_HEAD(&pdn->list);\n \tlist_add_tail(&pdn->list, &parent->child_list);\n \n-\t/*\n-\t * If we already have PCI device instance, lets\n-\t * bind them.\n-\t */\n-\tif (pdev)\n-\t\tpdev->dev.archdata.pci_data = pdn;\n-\n \treturn pdn;\n }\n #endif\n@@ -201,7 +191,7 @@ struct pci_dn *add_dev_pci_data(struct pci_dev *pdev)\n \tfor (i = 0; i < pci_sriov_get_totalvfs(pdev); i++) {\n \t\tstruct eeh_dev *edev __maybe_unused;\n \n-\t\tpdn = add_one_dev_pci_data(parent, NULL, i,\n+\t\tpdn = add_one_dev_pci_data(parent, i,\n \t\t\t\t\t   pci_iov_virtfn_bus(pdev, i),\n \t\t\t\t\t   pci_iov_virtfn_devfn(pdev, i));\n \t\tif (!pdn) {\n","prefixes":["kernel","v2","1/6"]}