From patchwork Sat Jun 7 11:43:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 31512 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7F8A52100A for ; Sat, 7 Jun 2014 11:43:34 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id i7sf21267154oag.0 for ; Sat, 07 Jun 2014 04:43:34 -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:from:to:date:message-id:cc:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=yEgFkY0zTHc/0ZpUBfvSfREa94dvvXYZh4kcL49qsG8=; b=eIz8oSAuYoXU3n3kmPO65d7kokDJmnRkYFkpvb6YeERLHor+7sk9d5hRccPkSK1iHq a9VVaurq2P3NJ5whLtekEJKLsJc3tG7ETCoWJRKwLOHzQGCOMn+JQ9ivlCMOR9R1CpK7 t971Glp6pWRLNoKg38T8sZd0dY8W+9e9V4/9ptsNr1eqzYReBhQNEkOLSnWzPN5JDV9F CEb6JzxozZu2SByg1Lvls6fVci7SYfoGLQ3kS2jgjAfYVHd54+Im+sZ86UYWteJQDexI FyM6v30alAvCjBR6ltuyYju299ME9PrQLE1WruKgJTfC9MQmh8apLohj7u/lz0UgnNzN 3dKw== X-Gm-Message-State: ALoCoQkof55L6SbpSPNC+onp/IUB+TkNXEv6vAo/Oav/AXVs1LBRKRoKF+V7pxRJ5cVdNhXj1+Zo X-Received: by 10.43.180.134 with SMTP id pe6mr6364410icc.6.1402141414080; Sat, 07 Jun 2014 04:43:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.28.195 with SMTP id 61ls1016531qgz.77.gmail; Sat, 07 Jun 2014 04:43:33 -0700 (PDT) X-Received: by 10.58.74.201 with SMTP id w9mr10616264vev.56.1402141413951; Sat, 07 Jun 2014 04:43:33 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id gr1si8787060vdc.92.2014.06.07.04.43.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 07 Jun 2014 04:43:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.177 as permitted sender) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id db11so4637424veb.36 for ; Sat, 07 Jun 2014 04:43:33 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr12697651vcb.0.1402141413880; Sat, 07 Jun 2014 04:43:33 -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.221.54.6 with SMTP id vs6csp15674vcb; Sat, 7 Jun 2014 04:43:33 -0700 (PDT) X-Received: by 10.140.95.80 with SMTP id h74mr16427811qge.2.1402141413379; Sat, 07 Jun 2014 04:43:33 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id bx8si16462536qcb.29.2014.06.07.04.43.32 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 07 Jun 2014 04:43:33 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WtF0f-0005Ge-1G; Sat, 07 Jun 2014 11:42:05 +0000 Received: from mail-wi0-f182.google.com ([209.85.212.182]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WtF0V-0005GF-Nm for lng-odp@lists.linaro.org; Sat, 07 Jun 2014 11:41:55 +0000 Received: by mail-wi0-f182.google.com with SMTP id r20so2216320wiv.15 for ; Sat, 07 Jun 2014 04:43:17 -0700 (PDT) X-Received: by 10.194.7.36 with SMTP id g4mr15175655wja.37.1402141397399; Sat, 07 Jun 2014 04:43:17 -0700 (PDT) Received: from uglx0153363.synapse.com ([195.238.92.128]) by mx.google.com with ESMTPSA id l5sm2788174wif.22.2014.06.07.04.43.16 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 07 Jun 2014 04:43:16 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Sat, 7 Jun 2014 14:43:06 +0300 Message-Id: <1402141387-22058-2-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Topics: timers patch Cc: linaro-networking@linaro.org Subject: [lng-odp] [PATCH] tests: api: timer: Fix operator precedence X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: taras.kondratiuk@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.128.177 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 '==' has higher priority than '=', so 'buf' gets a result of comparison instead of a buffer. Signed-off-by: Taras Kondratiuk --- test/api_test/odp_timer_ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/api_test/odp_timer_ping.c b/test/api_test/odp_timer_ping.c index 8b297d8..7f2d1c4 100644 --- a/test/api_test/odp_timer_ping.c +++ b/test/api_test/odp_timer_ping.c @@ -188,7 +188,7 @@ static int send_ping_request(struct sockaddr_in *addr) ODP_BUFFER_INVALID); /* wait for timeout event */ - while ((buf = odp_queue_deq(queue) == ODP_BUFFER_INVALID)) { + while ((buf = odp_queue_deq(queue)) == ODP_BUFFER_INVALID) { /* flag true means ack rxvd.. a cruel hack as I * am confused on method to get away from while * loop in case of ack rxvd..