Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/127069/?format=api
http://patches.dpdk.org/api/patches/127069/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230519042923.314670-3-ruifeng.wang@arm.com/", "project": { "id": 1, "url": "http://patches.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": "<20230519042923.314670-3-ruifeng.wang@arm.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230519042923.314670-3-ruifeng.wang@arm.com", "date": "2023-05-19T04:29:21", "name": "[2/4] eal: simplify check condition", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "50ae18a1dca070e61eb9b0bf900a815df204f859", "submitter": { "id": 1198, "url": "http://patches.dpdk.org/api/people/1198/?format=api", "name": "Ruifeng Wang", "email": "ruifeng.wang@arm.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230519042923.314670-3-ruifeng.wang@arm.com/mbox/", "series": [ { "id": 28077, "url": "http://patches.dpdk.org/api/series/28077/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=28077", "date": "2023-05-19T04:29:19", "name": "Heap library and test case changes", "version": 1, "mbox": "http://patches.dpdk.org/series/28077/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/127069/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/127069/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 15B6742B43;\n\tFri, 19 May 2023 06:30:22 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0868D42D36;\n\tFri, 19 May 2023 06:30:22 +0200 (CEST)", "from foss.arm.com (foss.arm.com [217.140.110.172])\n by mails.dpdk.org (Postfix) with ESMTP id 49D1742D32\n for <dev@dpdk.org>; Fri, 19 May 2023 06:30:20 +0200 (CEST)", "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14])\n by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AA8212F4;\n Thu, 18 May 2023 21:31:04 -0700 (PDT)", "from net-arm-n1amp-02.shanghai.arm.com\n (net-arm-n1amp-02.shanghai.arm.com [10.169.210.108])\n by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B7F443F762;\n Thu, 18 May 2023 21:30:17 -0700 (PDT)" ], "From": "Ruifeng Wang <ruifeng.wang@arm.com>", "To": "Anatoly Burakov <anatoly.burakov@intel.com>", "Cc": "dev@dpdk.org, honnappa.nagarahalli@arm.com, feifei.wang2@arm.com,\n nd@arm.com, Ruifeng Wang <ruifeng.wang@arm.com>", "Subject": "[PATCH 2/4] eal: simplify check condition", "Date": "Fri, 19 May 2023 12:29:21 +0800", "Message-Id": "<20230519042923.314670-3-ruifeng.wang@arm.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230519042923.314670-1-ruifeng.wang@arm.com>", "References": "<20230519042923.314670-1-ruifeng.wang@arm.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "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" }, "content": "The alt_elem is initialized to null. Checking only size hint flag is\nsufficient to return a proper value.\nRemoved the redundant check.\n\nSigned-off-by: Ruifeng Wang <ruifeng.wang@arm.com>\nReviewed-by: Feifei Wang <feifei.wang2@arm.com>\n---\n lib/eal/common/malloc_heap.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/lib/eal/common/malloc_heap.c b/lib/eal/common/malloc_heap.c\nindex d25bdc98f9..fa709ac567 100644\n--- a/lib/eal/common/malloc_heap.c\n+++ b/lib/eal/common/malloc_heap.c\n@@ -168,7 +168,7 @@ find_suitable_element(struct malloc_heap *heap, size_t size,\n \t\t}\n \t}\n \n-\tif ((alt_elem != NULL) && (flags & RTE_MEMZONE_SIZE_HINT_ONLY))\n+\tif (flags & RTE_MEMZONE_SIZE_HINT_ONLY)\n \t\treturn alt_elem;\n \n \treturn NULL;\n", "prefixes": [ "2/4" ] }{ "id": 127069, "url": "