{"id":807094,"url":"http://patchwork.ozlabs.org/api/1.2/patches/807094/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-pci/patch/1504013940-16304-1-git-send-email-himanshujha199640@gmail.com/","project":{"id":28,"url":"http://patchwork.ozlabs.org/api/1.2/projects/28/?format=json","name":"Linux PCI development","link_name":"linux-pci","list_id":"linux-pci.vger.kernel.org","list_email":"linux-pci@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1504013940-16304-1-git-send-email-himanshujha199640@gmail.com>","list_archive_url":null,"date":"2017-08-29T13:39:00","name":"PCI: tegra: Use PTR_ERR_OR_ZERO","commit_ref":null,"pull_url":null,"state":"rejected","archived":false,"hash":"01ab85b64d3bdb42b6d566fb4e41d55ac9b8bd83","submitter":{"id":72201,"url":"http://patchwork.ozlabs.org/api/1.2/people/72201/?format=json","name":"Himanshu Jha","email":"himanshujha199640@gmail.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-pci/patch/1504013940-16304-1-git-send-email-himanshujha199640@gmail.com/mbox/","series":[{"id":372,"url":"http://patchwork.ozlabs.org/api/1.2/series/372/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-pci/list/?series=372","date":"2017-08-29T13:39:00","name":"PCI: tegra: Use PTR_ERR_OR_ZERO","version":1,"mbox":"http://patchwork.ozlabs.org/series/372/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/807094/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/807094/checks/","tags":{},"related":[],"headers":{"Return-Path":"<linux-pci-owner@vger.kernel.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-pci-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"L41LXUSV\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xhV9J42RBz9sRV\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 29 Aug 2017 23:39:16 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752148AbdH2NjO (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tTue, 29 Aug 2017 09:39:14 -0400","from mail-pg0-f66.google.com ([74.125.83.66]:36180 \"EHLO\n\tmail-pg0-f66.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751310AbdH2NjN (ORCPT\n\t<rfc822; linux-pci@vger.kernel.org>); Tue, 29 Aug 2017 09:39:13 -0400","by mail-pg0-f66.google.com with SMTP id 83so2749031pgb.3;\n\tTue, 29 Aug 2017 06:39:13 -0700 (PDT)","from localhost.localdomain ([103.254.204.108])\n\tby smtp.gmail.com with ESMTPSA id\n\tc23sm5289871pfc.60.2017.08.29.06.39.09\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 29 Aug 2017 06:39:11 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id;\n\tbh=ZWDSyZ/MWVnXp+YKYmtYcsGyEtKYLuSn9qWdH0u0yLo=;\n\tb=L41LXUSVKjq5p9wjjuTkRF6kPYLbWGk90dFK5wsaenWklszZTygLLkiux3I4c/VVRa\n\tx2EPF5DjRowJG8kC4uSB0w+TEsduSvWJRJMj5WHGmUJprc6nISz3pzVpisRwQpoUZXo0\n\t9PBXNWrHoaQFEg/86STx/+EMqtDMQB7sTKhzbk44XpPByjXVfqY319DNvlchykTeGyoV\n\tc/0QWk1lzQU8eb+I5uclSU0fT9/3jNXx1L64lY6sjWu2/pMtqQLg1HEDfBIIdUlu7KOc\n\t/JjB3BtYU2Vf9Lanf3EwZoGhUkuoYgV41EuA/4Yd233znc0yANmcC0WVX5KchnSNcR9y\n\tLSSQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=ZWDSyZ/MWVnXp+YKYmtYcsGyEtKYLuSn9qWdH0u0yLo=;\n\tb=TKAWZzP1DQe00hgDkePojKyAqkyhCGGeIfGrJxq2DUc1Y8KLEFoY8hQYtLCOSrmOyf\n\tLypw+Qq8b2Pdh5S3QaUDqLhhTL7Xk6il5UbSnUIIpobNAJ1m/EjOivAh4imBXFulnIU9\n\tf3j/pbuRlBM69Byq9MmOBIjEVuX/vV5SnleNpqkCmoh9sGUXsoUwqJKknBQV3sAynvj1\n\t2kPZU+JMnKt3yzET+kgxrbmfe/+g541njB1N9IKzPhNse7FhjAnf4HMbCSd6RiyP2Q0b\n\tUzF+LeKn/PA8WocaWhwu0Qpv/2M5l0r/N1lsyTB1BLhglcbvAZGr8k5GQcX56LogrUPl\n\t+SGw==","X-Gm-Message-State":"AHYfb5j2ekCYfImtXsvqTM+kvAnBoK/52IYuCwA/OvftKDwBerCsx3BE\n\tYETOR1evun9GPA==","X-Google-Smtp-Source":"ADKCNb4SltfCJEK0hQXxjDd6IhJdEvHo3rGqbd3F53uIDcz4ngIhIersbMmRXmKqYZgxhOjPiZ1qKw==","X-Received":"by 10.99.0.74 with SMTP id 71mr350985pga.304.1504013952911;\n\tTue, 29 Aug 2017 06:39:12 -0700 (PDT)","From":"Himanshu Jha <himanshujha199640@gmail.com>","To":"thierry.reding@gmail.com","Cc":"bhelgaas@google.com, jonathanh@nvidia.com,\n\tlinux-tegra@vger.kernel.org, linux-pci@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org, Himanshu Jha <himanshujha199640@gmail.com>","Subject":"[PATCH] PCI: tegra: Use PTR_ERR_OR_ZERO","Date":"Tue, 29 Aug 2017 19:09:00 +0530","Message-Id":"<1504013940-16304-1-git-send-email-himanshujha199640@gmail.com>","X-Mailer":"git-send-email 2.7.4","Sender":"linux-pci-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<linux-pci.vger.kernel.org>","X-Mailing-List":"linux-pci@vger.kernel.org"},"content":"Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR\n\nSigned-off-by: Himanshu Jha <himanshujha199640@gmail.com>\n---\n drivers/pci/host/pci-tegra.c | 5 +----\n 1 file changed, 1 insertion(+), 4 deletions(-)","diff":"diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c\nindex 9c40da5..90cda5b 100644\n--- a/drivers/pci/host/pci-tegra.c\n+++ b/drivers/pci/host/pci-tegra.c\n@@ -1156,10 +1156,7 @@ static int tegra_pcie_resets_get(struct tegra_pcie *pcie)\n \t\treturn PTR_ERR(pcie->afi_rst);\n \n \tpcie->pcie_xrst = devm_reset_control_get_exclusive(dev, \"pcie_x\");\n-\tif (IS_ERR(pcie->pcie_xrst))\n-\t\treturn PTR_ERR(pcie->pcie_xrst);\n-\n-\treturn 0;\n+\treturn PTR_ERR_OR_ZERO(pcie->pcie_xrst);\n }\n \n static int tegra_pcie_phys_get_legacy(struct tegra_pcie *pcie)\n","prefixes":[]}