From patchwork Mon Mar 31 16:18:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 27498 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7BA9A20341 for ; Mon, 31 Mar 2014 16:18:28 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id hm4sf8792452wib.6 for ; Mon, 31 Mar 2014 09:18:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:to:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe:content-type; bh=SqQRYhUt/iGVQElFP8KIElNEdswq9rEFbcJg1bMxO1s=; b=j9Vazg5DrTY+YTDMrpXGEl+QJaFfp2wkI8EEiK/2k+3SO5lM/Oh2U/ehQR4oQ1vQ0y IyELNfUE4Zi0RFkYImoEp3Bwr0n77B6A6PqPiCL8dwvRw4FrIwI8wsVnWiH7n/nNFH8o vSFgsEE8OLmLoclH5MnUB4HA3B/S7z321cUpankQxdpzralN/V6GPH0D2OBg2zREZ11c lSErk24ufxHCiay1eHOF/ix/Wo+BCusxotlGJM1AIGVKR/8YZGCpdAikKPEBUIK5o8AU NH6neI7YlXvlQAod8MESgM1D0hQagL1NWWDte0Y+LVtQf4nEJgVO4m0J4O6hi90I91Rq EZnQ== X-Gm-Message-State: ALoCoQmJO+QqkdV7GJlKk3IddNIsklI6tM/pWnBujAGaggwcfnkUjs9YbpoHPTX7lO6zHeNUep02 X-Received: by 10.204.71.78 with SMTP id g14mr6188599bkj.3.1396282707649; Mon, 31 Mar 2014 09:18:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: lng-odp@linaro.org Received: by 10.152.37.129 with SMTP id y1ls363255laj.19.gmail; Mon, 31 Mar 2014 09:18:27 -0700 (PDT) X-Received: by 10.152.4.41 with SMTP id h9mr1709994lah.43.1396282707411; Mon, 31 Mar 2014 09:18:27 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by mx.google.com with ESMTPS id c1si9109660lbp.128.2014.03.31.09.18.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 31 Mar 2014 09:18:27 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.217.181 is neither permitted nor denied by best guess record for domain of maxim.uvarov@linaro.org) client-ip=209.85.217.181; Received: by mail-lb0-f181.google.com with SMTP id c11so5910854lbj.40 for ; Mon, 31 Mar 2014 09:18:27 -0700 (PDT) X-Received: by 10.112.89.10 with SMTP id bk10mr840591lbb.64.1396282707310; Mon, 31 Mar 2014 09:18:27 -0700 (PDT) Received: from maxim-lap.localhost.onion ([92.39.133.154]) by mx.google.com with ESMTPSA id eo12sm10217717lbb.13.2014.03.31.09.18.25 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 31 Mar 2014 09:18:26 -0700 (PDT) From: Maxim Uvarov To: lng-odp@linaro.org Subject: [lng-odp] [ODP/PATCHv2] buffer_pool code clean up Date: Mon, 31 Mar 2014 20:18:31 +0400 Message-Id: <1396282711-17611-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.217.181 is neither permitted nor denied by best guess record for domain of maxim.uvarov@linaro.org) smtp.mail=maxim.uvarov@linaro.org Precedence: list Mailing-list: list lng-odp@linaro.org; contact lng-odp+owners@linaro.org List-ID: X-Google-Group-Id: 474323889996 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Remove not needed empty lines. Signed-off-by: Maxim Uvarov --- platform/linux-generic/source/odp_buffer_pool.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/platform/linux-generic/source/odp_buffer_pool.c b/platform/linux-generic/source/odp_buffer_pool.c index fecdb18..1e9cc63 100644 --- a/platform/linux-generic/source/odp_buffer_pool.c +++ b/platform/linux-generic/source/odp_buffer_pool.c @@ -255,7 +255,6 @@ static void link_bufs(pool_entry_t *pool) uintptr_t pool_base; int buf_type; - buf_type = pool->s.buf_type; payload_size = pool->s.payload_size; payload_align = pool->s.payload_align; @@ -272,7 +271,6 @@ static void link_bufs(pool_entry_t *pool) exit(0); } - /* Chunk must fit into buffer payload.*/ min_size = sizeof(odp_buffer_chunk_hdr_t) - hdr_size; if (payload_size < min_size) @@ -392,7 +390,6 @@ odp_buffer_pool_t odp_buffer_pool_lookup(const char *name) UNLOCK(&pool->s.lock); } - return ODP_BUFFER_POOL_INVALID; } @@ -432,8 +429,6 @@ odp_buffer_t odp_buffer_alloc(odp_buffer_pool_t pool_id) handle = hdr->handle; } - - return handle.u32; }