From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C71E1A0032; Wed, 13 Jul 2022 17:28:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7C22D4282D; Wed, 13 Jul 2022 17:28:57 +0200 (CEST) Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mails.dpdk.org (Postfix) with ESMTP id 446394280D for ; Wed, 13 Jul 2022 17:28:54 +0200 (CEST) Received: by mail-pj1-f52.google.com with SMTP id 89-20020a17090a09e200b001ef7638e536so4218186pjo.3 for ; Wed, 13 Jul 2022 08:28:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xd1WjYubtEwByBQmWDuBb25Q4eTtqqF3VxAVfbcKKcU=; b=OVWg2Re3I01xq2CwoGsubeTziI1HM/jxzF99mnJbvOlN10xWyZI7JKGAFDR9wcn6PQ doCzd+JYpVMk70vkAy13dNuv9dCUEbRpppfpLr2TLxrOYGFSD28kknM7bqcSjX4tz2R9 Hvoy/AoFdPsDUsSDqzihLR+ketdVMn97RRHTjrZYA6JGJCqSTZhOo39olN+rZwFVRbKl P/dp8W4BhVrErCbLkoM3lsGVMYqznrdLsRJpesG3xmGEjMKT4wxSKKlcAx6NsiKZjC3E Z4/Vmbju4HgCgW9APENUanpXxSZt8ZyPtgnFhCLUk4vE5LrxMAvRRgQ47ldwTWr8kyOT zxJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xd1WjYubtEwByBQmWDuBb25Q4eTtqqF3VxAVfbcKKcU=; b=H26TMju+TDeiR9VT/xtbfFtMxJOfd6gfsi92YA4L4uUroLmOM/+mcJepqC4M/3sgnD Swr3t26Yu8+fAs58gWpoLXp/OYmO1kAfgglFehHu4USVMqjHZsv6+GkoWNARPMUQpOKE HRMfLpSQXezkxHySo2jACZ59YG1B2ZCJ/9zlWLvwGLbAQcFX1mg/CA1zfQO6fUT9ClvB 3oVrAZBA+X6j7WjakOMLv1T3JhkxyxPAPZK2zOEJdRhEHrXrOqYxtzvMk6gBLcVYi4ky sJBl3F2MqzyQ9q0eNP88/Fi5t2EWSu4EaQYecKVJR8gyxat3e8wLTIfHUjqqUzDQOpbb nJkw== X-Gm-Message-State: AJIora9x2zITfaofWJrSgJRZ6vx6+wxzdZK2o5ER7CAw4U53Us5tm5+Z BfNZ4UZyBf7ht8WxMnrunoPpiytkB1/93A== X-Google-Smtp-Source: AGRyM1v4P+rYcZpJdi0Hr1oh8zDqivO+TvzGqITuURh7EmVIxGYQ3v0DA3ExX9ttQ1Rpy96wNwYBxw== X-Received: by 2002:a17:90b:3ec5:b0:1f0:3986:4502 with SMTP id rm5-20020a17090b3ec500b001f039864502mr4578465pjb.6.1657726133729; Wed, 13 Jul 2022 08:28:53 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id b17-20020a17090ae39100b001efbc3ad105sm1728606pjz.54.2022.07.13.08.28.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 08:28:51 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Jerin Jacob Subject: [PATCH] app/test-eventdev: remove unnecessary memset Date: Wed, 13 Jul 2022 08:28:48 -0700 Message-Id: <20220713152848.160523-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.35.1 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The function rte_event_dev_info_get already zeros the info structure. Therefore the test code doesn't need to do it. Signed-off-by: Stephen Hemminger --- app/test-eventdev/test_order_common.c | 1 - app/test-eventdev/test_perf_atq.c | 1 - app/test-eventdev/test_perf_queue.c | 1 - 3 files changed, 3 deletions(-) diff --git a/app/test-eventdev/test_order_common.c b/app/test-eventdev/test_order_common.c index 603e7c9178bc..6f00f2448a24 100644 --- a/app/test-eventdev/test_order_common.c +++ b/app/test-eventdev/test_order_common.c @@ -328,7 +328,6 @@ order_event_dev_port_setup(struct evt_test *test, struct evt_options *opt, struct test_order *t = evt_test_priv(test); struct rte_event_dev_info dev_info; - memset(&dev_info, 0, sizeof(struct rte_event_dev_info)); ret = rte_event_dev_info_get(opt->dev_id, &dev_info); if (ret) { evt_err("failed to get eventdev info %d", opt->dev_id); diff --git a/app/test-eventdev/test_perf_atq.c b/app/test-eventdev/test_perf_atq.c index 5436a9b06cd8..8326f540459f 100644 --- a/app/test-eventdev/test_perf_atq.c +++ b/app/test-eventdev/test_perf_atq.c @@ -212,7 +212,6 @@ perf_atq_eventdev_setup(struct evt_test *test, struct evt_options *opt) nb_queues = atq_nb_event_queues(opt); - memset(&dev_info, 0, sizeof(struct rte_event_dev_info)); ret = rte_event_dev_info_get(opt->dev_id, &dev_info); if (ret) { evt_err("failed to get eventdev info %d", opt->dev_id); diff --git a/app/test-eventdev/test_perf_queue.c b/app/test-eventdev/test_perf_queue.c index 5ef2e5a3ef9c..814ab9f9bd86 100644 --- a/app/test-eventdev/test_perf_queue.c +++ b/app/test-eventdev/test_perf_queue.c @@ -215,7 +215,6 @@ perf_queue_eventdev_setup(struct evt_test *test, struct evt_options *opt) nb_queues = perf_queue_nb_event_queues(opt); - memset(&dev_info, 0, sizeof(struct rte_event_dev_info)); ret = rte_event_dev_info_get(opt->dev_id, &dev_info); if (ret) { evt_err("failed to get eventdev info %d", opt->dev_id); -- 2.35.1