From patchwork Fri Jun 5 11:53:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Kiss X-Patchwork-Id: 49566 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6EE892154F for ; Fri, 5 Jun 2015 11:57:11 +0000 (UTC) Received: by laar3 with SMTP id r3sf3858565laa.3 for ; Fri, 05 Jun 2015 04:57:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=QiT9f5kPzwXLulB0HEt0rXE8h9EQ+rRJVxX59zR9MAM=; b=U0GLvXrQzCbmr6Eq/vdY2sdoEqY9c+/+dZZ2GsPOqvy+bp2k2kfoYjt5U7O4Nj0zyW 9um5wTYYxL14HAnSnEXYGHwjv/tMcICE2X8YO/9b70eALQQiyQfXaUzP7f7pCQA3zEW0 /WaKbipcEAMJkd1jZ1368+fYc3hts8Y5KDQVblzS1rep12CMEpBBJIEK0cuilOqmTqqY fFk1ifB/tas8s9iIogcJUEQjCPKTMOTHYcGljEvGXa62j8OnJC97njYwSfPX7KW9BKGM o2BMfmjQnMkV0ckQ8s/SGciBagmJLtskhZxG18WUn3TnwONIhjdpwXWu5j1kUBo/ZKiJ X29g== X-Gm-Message-State: ALoCoQmKtHB/NJN8Z2Vs7WQSK+hqR3NF54i4e3VDuvu20P7ZCQEvSkLyd4NTAK2f/JfRtaytFoaf X-Received: by 10.112.171.41 with SMTP id ar9mr2937567lbc.24.1433505430146; Fri, 05 Jun 2015 04:57:10 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.100 with SMTP id z4ls288268laz.57.gmail; Fri, 05 Jun 2015 04:57:10 -0700 (PDT) X-Received: by 10.152.225.166 with SMTP id rl6mr3045783lac.36.1433505430002; Fri, 05 Jun 2015 04:57:10 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id q3si4611499laj.148.2015.06.05.04.57.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jun 2015 04:57:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbbtu8 with SMTP id tu8so28504595lbb.2 for ; Fri, 05 Jun 2015 04:57:09 -0700 (PDT) X-Received: by 10.152.29.34 with SMTP id g2mr3007861lah.73.1433505429905; Fri, 05 Jun 2015 04:57:09 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp1369463lbb; Fri, 5 Jun 2015 04:57:08 -0700 (PDT) X-Received: by 10.140.31.54 with SMTP id e51mr3402516qge.95.1433505427937; Fri, 05 Jun 2015 04:57:07 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k39si7241717qgk.87.2015.06.05.04.57.07; Fri, 05 Jun 2015 04:57:07 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 096F762041; Fri, 5 Jun 2015 11:57:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 1499661D49; Fri, 5 Jun 2015 11:55:10 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 1587962051; Fri, 5 Jun 2015 11:55:03 +0000 (UTC) Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by lists.linaro.org (Postfix) with ESMTPS id D1C1C62039 for ; Fri, 5 Jun 2015 11:54:19 +0000 (UTC) Received: by wiga1 with SMTP id a1so18216811wig.0 for ; Fri, 05 Jun 2015 04:54:19 -0700 (PDT) X-Received: by 10.194.235.100 with SMTP id ul4mr5687953wjc.33.1433505259030; Fri, 05 Jun 2015 04:54:19 -0700 (PDT) Received: from localhost.localdomain ([90.152.119.35]) by mx.google.com with ESMTPSA id b20sm10268741wjb.46.2015.06.05.04.54.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Jun 2015 04:54:18 -0700 (PDT) From: Zoltan Kiss To: lng-odp@lists.linaro.org Date: Fri, 5 Jun 2015 12:53:48 +0100 Message-Id: <1433505231-28843-7-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433505231-28843-1-git-send-email-zoltan.kiss@linaro.org> References: <1433505231-28843-1-git-send-email-zoltan.kiss@linaro.org> X-Topics: timers patch Subject: [lng-odp] [API-NEXT PATCH v2 6/9] odp_timer_test: remove redundant free function X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zoltan.kiss@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Zoltan Kiss --- example/timer/odp_timer_test.c | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c index 5e4306e..735c4c6 100644 --- a/example/timer/odp_timer_test.c +++ b/example/timer/odp_timer_test.c @@ -66,30 +66,6 @@ static const char *timerset2str(odp_timer_set_t val) } }; - -/** @private test timeout */ -static void free_event(odp_event_t ev) -{ - switch (odp_event_type(ev)) { - case ODP_EVENT_BUFFER: - odp_buffer_free(odp_buffer_from_event(ev)); - break; - case ODP_EVENT_PACKET: - odp_packet_free(odp_packet_from_event(ev)); - break; - case ODP_EVENT_TIMEOUT: - odp_timeout_free(odp_timeout_from_event(ev)); - break; - case ODP_EVENT_CRYPTO_COMPL: - odp_crypto_compl_free(odp_crypto_compl_from_event(ev)); - break; - default: - fprintf(stderr, "Unrecognized event type %d\n", - odp_event_type(ev)); - abort(); - } -} - /** @private test timeout */ static void remove_prescheduled_events(void) { @@ -98,7 +74,7 @@ static void remove_prescheduled_events(void) odp_schedule_pause(); while ((ev = odp_schedule(&queue, ODP_SCHED_NO_WAIT)) != ODP_EVENT_INVALID) { - free_event(ev); + odp_event_free(ev); } }