Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/77898/?format=api
http://patchwork.dpdk.org/api/patches/77898/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/677e6331b63389275fb1b1009fbea5642028e506.1600259975.git.wangyunjian@huawei.com/", "project": { "id": 1, "url": "http://patchwork.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<677e6331b63389275fb1b1009fbea5642028e506.1600259975.git.wangyunjian@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/677e6331b63389275fb1b1009fbea5642028e506.1600259975.git.wangyunjian@huawei.com", "date": "2020-09-16T12:41:56", "name": "vfio: remove unnecessary explicit type casting", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "5ab41b4bef7b86499dd475322beeeb744ace54ff", "submitter": { "id": 551, "url": "http://patchwork.dpdk.org/api/people/551/?format=api", "name": "Yunjian Wang", "email": "wangyunjian@huawei.com" }, "delegate": { "id": 24651, "url": "http://patchwork.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/677e6331b63389275fb1b1009fbea5642028e506.1600259975.git.wangyunjian@huawei.com/mbox/", "series": [ { "id": 12281, "url": "http://patchwork.dpdk.org/api/series/12281/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=12281", "date": "2020-09-16T12:41:56", "name": "vfio: remove unnecessary explicit type casting", "version": 1, "mbox": "http://patchwork.dpdk.org/series/12281/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/77898/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/77898/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 19295A04C9;\n\tWed, 16 Sep 2020 14:42:21 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0E52F1C299;\n\tWed, 16 Sep 2020 14:42:20 +0200 (CEST)", "from huawei.com (szxga06-in.huawei.com [45.249.212.32])\n by dpdk.org (Postfix) with ESMTP id EB3A41C239\n for <dev@dpdk.org>; Wed, 16 Sep 2020 14:42:18 +0200 (CEST)", "from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60])\n by Forcepoint Email with ESMTP id 58D6E51808094B6BF4D2\n for <dev@dpdk.org>; Wed, 16 Sep 2020 20:42:15 +0800 (CST)", "from localhost (10.174.185.168) by DGGEMS414-HUB.china.huawei.com\n (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Wed, 16 Sep 2020\n 20:42:07 +0800" ], "From": "wangyunjian <wangyunjian@huawei.com>", "To": "<dev@dpdk.org>", "CC": "<anatoly.burakov@intel.com>, <jerry.lilijun@huawei.com>,\n <xudingke@huawei.com>, Yunjian Wang <wangyunjian@huawei.com>", "Date": "Wed, 16 Sep 2020 20:41:56 +0800", "Message-ID": "\n <677e6331b63389275fb1b1009fbea5642028e506.1600259975.git.wangyunjian@huawei.com>", "X-Mailer": "git-send-email 1.9.5.msysgit.1", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Originating-IP": "[10.174.185.168]", "X-CFilter-Loop": "Reflected", "Subject": "[dpdk-dev] [PATCH] vfio: remove unnecessary explicit type casting", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Yunjian Wang <wangyunjian@huawei.com>\n\nThe variables 'vfio_res->nb_maps' and 'i' are of type int. The type\ncasting of 'vfio_res->nb_maps' is redundant and not required.\n\nSigned-off-by: Yunjian Wang <wangyunjian@huawei.com>\n---\n drivers/bus/pci/linux/pci_vfio.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/bus/pci/linux/pci_vfio.c b/drivers/bus/pci/linux/pci_vfio.c\nindex c15ed3bad..85a51e3e2 100644\n--- a/drivers/bus/pci/linux/pci_vfio.c\n+++ b/drivers/bus/pci/linux/pci_vfio.c\n@@ -750,7 +750,7 @@ pci_vfio_map_resource_primary(struct rte_pci_device *dev)\n \t\t}\n \t}\n \n-\tfor (i = 0; i < (int) vfio_res->nb_maps; i++) {\n+\tfor (i = 0; i < vfio_res->nb_maps; i++) {\n \t\tstruct vfio_region_info *reg = NULL;\n \t\tvoid *bar_addr;\n \n@@ -875,7 +875,7 @@ pci_vfio_map_resource_secondary(struct rte_pci_device *dev)\n \t/* map BARs */\n \tmaps = vfio_res->maps;\n \n-\tfor (i = 0; i < (int) vfio_res->nb_maps; i++) {\n+\tfor (i = 0; i < vfio_res->nb_maps; i++) {\n \t\tret = pci_vfio_mmap_bar(vfio_dev_fd, vfio_res, i, MAP_FIXED);\n \t\tif (ret < 0) {\n \t\t\tRTE_LOG(ERR, EAL, \" %s mapping BAR%i failed: %s\\n\",\n@@ -934,7 +934,7 @@ find_and_unmap_vfio_resource(struct mapped_pci_res_list *vfio_res_list,\n \t\tpci_addr);\n \n \tmaps = vfio_res->maps;\n-\tfor (i = 0; i < (int) vfio_res->nb_maps; i++) {\n+\tfor (i = 0; i < vfio_res->nb_maps; i++) {\n \n \t\t/*\n \t\t * We do not need to be aware of MSI-X table BAR mappings as\n", "prefixes": [] }{ "id": 77898, "url": "