Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/90804/?format=api
http://patches.dpdk.org/api/patches/90804/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210407105945.18064-1-cristian.dumitrescu@intel.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": "<20210407105945.18064-1-cristian.dumitrescu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210407105945.18064-1-cristian.dumitrescu@intel.com", "date": "2021-04-07T10:59:45", "name": "port: fix dead code in ring", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "d4e48af48f45f83c9fd3342896e1aa26b1797a8b", "submitter": { "id": 19, "url": "http://patches.dpdk.org/api/people/19/?format=api", "name": "Cristian Dumitrescu", "email": "cristian.dumitrescu@intel.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/20210407105945.18064-1-cristian.dumitrescu@intel.com/mbox/", "series": [ { "id": 16167, "url": "http://patches.dpdk.org/api/series/16167/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=16167", "date": "2021-04-07T10:59:45", "name": "port: fix dead code in ring", "version": 1, "mbox": "http://patches.dpdk.org/series/16167/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/90804/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/90804/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 5A781A0A02;\n\tWed, 7 Apr 2021 12:59:49 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 17EDC4069F;\n\tWed, 7 Apr 2021 12:59:49 +0200 (CEST)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id 91C214013F\n for <dev@dpdk.org>; Wed, 7 Apr 2021 12:59:47 +0200 (CEST)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 07 Apr 2021 03:59:46 -0700", "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com) ([10.237.223.107])\n by fmsmga008.fm.intel.com with ESMTP; 07 Apr 2021 03:59:45 -0700" ], "IronPort-SDR": [ "\n DILhG1Q5D20JxzKnK0UDweTV7E+MBjJbkQ1FXVUDmJxZAwfBNtl07GN1v+XlJrHNqkNw9tk08C\n loJbOtBZxiZQ==", "\n Onf1E3uTlfbD42FtW7xwzZPOstp3j7Yt/1t4GfslwhL646gWeMq07H3PTnwNG58NpUhFqsZjqF\n 44QS3NJxh/Sw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9946\"; a=\"278547744\"", "E=Sophos;i=\"5.82,203,1613462400\"; d=\"scan'208\";a=\"278547744\"", "E=Sophos;i=\"5.82,203,1613462400\"; d=\"scan'208\";a=\"415223153\"" ], "X-ExtLoop1": "1", "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>", "To": "dev@dpdk.org", "Date": "Wed, 7 Apr 2021 11:59:45 +0100", "Message-Id": "<20210407105945.18064-1-cristian.dumitrescu@intel.com>", "X-Mailer": "git-send-email 2.17.1", "Subject": "[dpdk-dev] [PATCH] port: fix dead code in ring", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Fix logically dead code in ring port.\n\nCoverity issue: 369664\nFixes: 77a413017c2d (\"port: add ring SWX port\")\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\n---\n lib/librte_port/rte_swx_port_ring.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/lib/librte_port/rte_swx_port_ring.c b/lib/librte_port/rte_swx_port_ring.c\nindex 4df720d91..8a076a213 100644\n--- a/lib/librte_port/rte_swx_port_ring.c\n+++ b/lib/librte_port/rte_swx_port_ring.c\n@@ -195,7 +195,7 @@ writer_create(void *args)\n \t\tgoto error;\n \n \tp->params.name = strdup(params->name);\n-\tif (!p)\n+\tif (!p->params.name)\n \t\tgoto error;\n \n \tp->pkts = calloc(params->burst_size, sizeof(struct rte_mbuf *));\n", "prefixes": [] }{ "id": 90804, "url": "