From patchwork Wed Jul 1 17:06:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Kiss X-Patchwork-Id: 50535 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 299EC214B3 for ; Wed, 1 Jul 2015 17:09:58 +0000 (UTC) Received: by wgbbj7 with SMTP id bj7sf14587304wgb.2 for ; Wed, 01 Jul 2015 10:09:57 -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:cc: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=Eil1fjDy8+EaZFf66+aj37bikI536966F5RxKCqieQs=; b=ZPqRINTQy8AGVjJS6uQ3Z3igRmKhBfYMJ4UKbUwHTygORfSfhRp+n4zV/tc/j3lkT2 dLzu0oMcz/Vi/MHSXx73Kzw6DM/uVRGu0HxIvB+9L+568zmr9euqBoQrZCbAXjeDR/Ok Lxkb7cdS+xKCj2W/TjSpCTs3A1Bs9nbgX5+HCphIYcFjs3/Sv/RTr3ec/fDGz6Udl6py Cd6ickVrxIq1QPtkWnFv/Y8kT8ixDKcH7CHDz7MO50k4HEGRuzuuN3E4P6xJ8taJeQvZ nadknZ+DXgBuUK24KXpml8V3IcFQpR3Z/zUsSRZzjxc02pwcCorH5bQl9r3iWxths+lP 1RbQ== X-Gm-Message-State: ALoCoQkTTdeXa37DbAcR14mYJnodPWPeBisF/o/FRhyJQkNdcvzGp3fH/wTuTSUiqTK+yl1nyKte X-Received: by 10.194.90.6 with SMTP id bs6mr6693829wjb.4.1435770597520; Wed, 01 Jul 2015 10:09:57 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.179.201 with SMTP id di9ls230328lac.92.gmail; Wed, 01 Jul 2015 10:09:57 -0700 (PDT) X-Received: by 10.153.8.171 with SMTP id dl11mr26872782lad.77.1435770597214; Wed, 01 Jul 2015 10:09:57 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id d3si2220379lab.63.2015.07.01.10.09.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jul 2015 10:09:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by laar3 with SMTP id r3so45150149laa.0 for ; Wed, 01 Jul 2015 10:09:57 -0700 (PDT) X-Received: by 10.112.42.50 with SMTP id k18mr24220447lbl.76.1435770597120; Wed, 01 Jul 2015 10:09:57 -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 hn6csp743787lbb; Wed, 1 Jul 2015 10:09:56 -0700 (PDT) X-Received: by 10.140.109.119 with SMTP id k110mr34837100qgf.53.1435770595799; Wed, 01 Jul 2015 10:09:55 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f19si2961484qhc.91.2015.07.01.10.09.53; Wed, 01 Jul 2015 10:09:55 -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 68C5461F61; Wed, 1 Jul 2015 17:09:53 +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 CB70D61F59; Wed, 1 Jul 2015 17:07:30 +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 8B81261F74; Wed, 1 Jul 2015 17:07:25 +0000 (UTC) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by lists.linaro.org (Postfix) with ESMTPS id CC61461F44 for ; Wed, 1 Jul 2015 17:06:42 +0000 (UTC) Received: by wibdq8 with SMTP id dq8so51434325wib.1 for ; Wed, 01 Jul 2015 10:06:42 -0700 (PDT) X-Received: by 10.180.188.139 with SMTP id ga11mr8321146wic.7.1435770401976; Wed, 01 Jul 2015 10:06:41 -0700 (PDT) Received: from localhost.localdomain ([90.152.119.35]) by mx.google.com with ESMTPSA id fi6sm4335895wib.6.2015.07.01.10.06.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Jul 2015 10:06:41 -0700 (PDT) From: Zoltan Kiss To: lng-odp@lists.linaro.org Date: Wed, 1 Jul 2015 18:06:16 +0100 Message-Id: <1435770379-30000-7-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435770379-30000-1-git-send-email-zoltan.kiss@linaro.org> References: <1435770379-30000-1-git-send-email-zoltan.kiss@linaro.org> X-Topics: timers patch Cc: Petri Savolainen Subject: [lng-odp] [API-NEXT PATCH v4 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.215.42 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 f4af0e2..ccd07fd 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); } }