From patchwork Tue Aug 25 15:26:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 52697 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 21F1322E8F for ; Tue, 25 Aug 2015 15:27:45 +0000 (UTC) Received: by wilj18 with SMTP id j18sf7176971wil.0 for ; Tue, 25 Aug 2015 08:27:44 -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=09SjgPeN0XbXcCMFEE3t2SNIwwb2LwnnWHYuYq23n34=; b=bPvKxLDLG4SsKAWb34aK6dOHhAkTidlnw/laQoqRZWvq24jnGQuFZ9795DVa38sUxI Dm1PMrjRpwDPMdNvYV3TrGJ02EeQGk+HhOVVeikY53grBQ4ET0Xc8SiQWXAI0lT4uT8L /phY4JjCH+Pq9iYIyHGYo0z5nxiGpetjRlD5hlcGzsdAlVH7vkZrtR5XxbAJZnGiBkXH UlXZzA5MW3b8HqFOoFYhntbOl7aTakqq6am/Zncolw49YHntnVRcHA9Qf5i1xJ7QSZBL BVXFOpM4iYD389vsMxdEowYRiY+5WU2MIYkCA25t1XyLRH3bdvKKow7I+MFzHPNIHg9r 7RpQ== X-Gm-Message-State: ALoCoQmKRApxAfUwG7QSSjW5vyA71EaeQjX1C1Vdt4yxoTo/4QIMjnh0RfRNXg4luPftZ8Kkpx7b X-Received: by 10.112.99.37 with SMTP id en5mr8664885lbb.7.1440516464333; Tue, 25 Aug 2015 08:27:44 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.7.108 with SMTP id db12ls733782lad.70.gmail; Tue, 25 Aug 2015 08:27:44 -0700 (PDT) X-Received: by 10.112.234.165 with SMTP id uf5mr25491611lbc.91.1440516464160; Tue, 25 Aug 2015 08:27:44 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id r5si16287976lbp.16.2015.08.25.08.27.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Aug 2015 08:27:44 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by labia3 with SMTP id ia3so36230241lab.3 for ; Tue, 25 Aug 2015 08:27:44 -0700 (PDT) X-Received: by 10.152.42.132 with SMTP id o4mr2308190lal.88.1440516464044; Tue, 25 Aug 2015 08:27:44 -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.162.200 with SMTP id yc8csp3256168lbb; Tue, 25 Aug 2015 08:27:43 -0700 (PDT) X-Received: by 10.55.217.84 with SMTP id u81mr51508229qki.76.1440516462589; Tue, 25 Aug 2015 08:27:42 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 129si33909164qhs.119.2015.08.25.08.27.38; Tue, 25 Aug 2015 08:27:42 -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 DB8F061E60; Tue, 25 Aug 2015 15:27:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 7A4A961F17; Tue, 25 Aug 2015 15:27:01 +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 D03C261F16; Tue, 25 Aug 2015 15:26:56 +0000 (UTC) Received: from mail-qg0-f54.google.com (mail-qg0-f54.google.com [209.85.192.54]) by lists.linaro.org (Postfix) with ESMTPS id 315F061CCB for ; Tue, 25 Aug 2015 15:26:53 +0000 (UTC) Received: by qgeh99 with SMTP id h99so48982440qge.0 for ; Tue, 25 Aug 2015 08:26:53 -0700 (PDT) X-Received: by 10.140.238.198 with SMTP id j189mr10542796qhc.63.1440516412855; Tue, 25 Aug 2015 08:26:52 -0700 (PDT) Received: from localhost.localdomain (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by smtp.gmail.com with ESMTPSA id z71sm13994853qkz.16.2015.08.25.08.26.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Aug 2015 08:26:52 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Tue, 25 Aug 2015 11:26:42 -0400 Message-Id: <1440516404-4177-4-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1440516404-4177-1-git-send-email-mike.holmes@linaro.org> References: <1440516404-4177-1-git-send-email-mike.holmes@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 4/6] linux-generic: fix unnecessary parenthesis 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: mike.holmes@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.48 as permitted sender) smtp.mailfrom=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: Mike Holmes --- platform/linux-generic/odp_classification.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/platform/linux-generic/odp_classification.c b/platform/linux-generic/odp_classification.c index 66e2049..7660416 100644 --- a/platform/linux-generic/odp_classification.c +++ b/platform/linux-generic/odp_classification.c @@ -32,17 +32,17 @@ static pmr_tbl_t *pmr_tbl; cos_t *get_cos_entry_internal(odp_cos_t cos_id) { - return &(cos_tbl->cos_entry[_odp_typeval(cos_id)]); + return &cos_tbl->cos_entry[_odp_typeval(cos_id)]; } pmr_set_t *get_pmr_set_entry_internal(odp_pmr_set_t pmr_set_id) { - return &(pmr_set_tbl->pmr_set[_odp_typeval(pmr_set_id)]); + return &pmr_set_tbl->pmr_set[_odp_typeval(pmr_set_id)]; } pmr_t *get_pmr_entry_internal(odp_pmr_t pmr_id) { - return &(pmr_tbl->pmr[_odp_typeval(pmr_id)]); + return &pmr_tbl->pmr[_odp_typeval(pmr_id)]; } int odp_classification_init_global(void) @@ -227,7 +227,7 @@ cos_t *get_cos_entry(odp_cos_t cos_id) return NULL; if (cos_tbl->cos_entry[_odp_typeval(cos_id)].s.valid == 0) return NULL; - return &(cos_tbl->cos_entry[_odp_typeval(cos_id)]); + return &cos_tbl->cos_entry[_odp_typeval(cos_id)]; } pmr_set_t *get_pmr_set_entry(odp_pmr_set_t pmr_set_id) @@ -237,7 +237,7 @@ pmr_set_t *get_pmr_set_entry(odp_pmr_set_t pmr_set_id) return NULL; if (pmr_set_tbl->pmr_set[_odp_typeval(pmr_set_id)].s.pmr.s.valid == 0) return NULL; - return &(pmr_set_tbl->pmr_set[_odp_typeval(pmr_set_id)]); + return &pmr_set_tbl->pmr_set[_odp_typeval(pmr_set_id)]; } pmr_t *get_pmr_entry(odp_pmr_t pmr_id) @@ -247,7 +247,7 @@ pmr_t *get_pmr_entry(odp_pmr_t pmr_id) return NULL; if (pmr_tbl->pmr[_odp_typeval(pmr_id)].s.valid == 0) return NULL; - return &(pmr_tbl->pmr[_odp_typeval(pmr_id)]); + return &pmr_tbl->pmr[_odp_typeval(pmr_id)]; } int odp_cos_destroy(odp_cos_t cos_id)