diff mbox

linux-generic: buffer: remove unused internal _odp_buffer_type() function

Message ID 1446572041-20637-1-git-send-email-bill.fischofer@linaro.org
State Accepted
Commit 3419b057beb82fd556c03e1af06cfb65e70ed9dd
Headers show

Commit Message

Bill Fischofer Nov. 3, 2015, 5:34 p.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 platform/linux-generic/include/odp_buffer_internal.h | 10 ----------
 platform/linux-generic/odp_buffer.c                  |  8 --------
 2 files changed, 18 deletions(-)

Comments

Mike Holmes Nov. 4, 2015, 6:08 p.m. UTC | #1
On 3 November 2015 at 12:34, Bill Fischofer <bill.fischofer@linaro.org>
wrote:

> Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>

>


Reviewed-by: Mike Holmes <mike.holmes@linaro.org>



> ---

>  platform/linux-generic/include/odp_buffer_internal.h | 10 ----------

>  platform/linux-generic/odp_buffer.c                  |  8 --------

>  2 files changed, 18 deletions(-)

>

> diff --git a/platform/linux-generic/include/odp_buffer_internal.h

> b/platform/linux-generic/include/odp_buffer_internal.h

> index 7f3fa1c..462f4bf 100644

> --- a/platform/linux-generic/include/odp_buffer_internal.h

> +++ b/platform/linux-generic/include/odp_buffer_internal.h

> @@ -167,16 +167,6 @@ typedef struct {

>  /* Forward declarations */

>  odp_buffer_t buffer_alloc(odp_pool_t pool, size_t size);

>

> -

> -/*

> - * Buffer type

> - *

> - * @param buf      Buffer handle

> - *

> - * @return Buffer type

> - */

> -int _odp_buffer_type(odp_buffer_t buf);

> -

>  #ifdef __cplusplus

>  }

>  #endif

> diff --git a/platform/linux-generic/odp_buffer.c

> b/platform/linux-generic/odp_buffer.c

> index d5d42a6..ec2bbba 100644

> --- a/platform/linux-generic/odp_buffer.c

> +++ b/platform/linux-generic/odp_buffer.c

> @@ -39,14 +39,6 @@ uint32_t odp_buffer_size(odp_buffer_t buf)

>         return hdr->size;

>  }

>

> -

> -int _odp_buffer_type(odp_buffer_t buf)

> -{

> -       odp_buffer_hdr_t *hdr = odp_buf_to_hdr(buf);

> -

> -       return hdr->type;

> -}

> -

>  int odp_buffer_is_valid(odp_buffer_t buf)

>  {

>         return validate_buf(buf) != NULL;

> --

> 2.1.4

>

> _______________________________________________

> lng-odp mailing list

> lng-odp@lists.linaro.org

> https://lists.linaro.org/mailman/listinfo/lng-odp

>




-- 
Mike Holmes
Technical Manager - Linaro Networking Group
Linaro.org <http://www.linaro.org/> *│ *Open source software for ARM SoCs
Maxim Uvarov Nov. 5, 2015, 7:18 a.m. UTC | #2
Merged,
Maxim.

On 11/04/2015 21:08, Mike Holmes wrote:
>
>
> On 3 November 2015 at 12:34, Bill Fischofer <bill.fischofer@linaro.org 
> <mailto:bill.fischofer@linaro.org>> wrote:
>
>     Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org
>     <mailto:bill.fischofer@linaro.org>>
>
>
> Reviewed-by: Mike Holmes <mike.holmes@linaro.org 
> <mailto:mike.holmes@linaro.org>>
>
>     ---
>      platform/linux-generic/include/odp_buffer_internal.h | 10 ----------
>      platform/linux-generic/odp_buffer.c                  |  8 --------
>      2 files changed, 18 deletions(-)
>
>     diff --git a/platform/linux-generic/include/odp_buffer_internal.h
>     b/platform/linux-generic/include/odp_buffer_internal.h
>     index 7f3fa1c..462f4bf 100644
>     --- a/platform/linux-generic/include/odp_buffer_internal.h
>     +++ b/platform/linux-generic/include/odp_buffer_internal.h
>     @@ -167,16 +167,6 @@ typedef struct {
>      /* Forward declarations */
>      odp_buffer_t buffer_alloc(odp_pool_t pool, size_t size);
>
>     -
>     -/*
>     - * Buffer type
>     - *
>     - * @param buf      Buffer handle
>     - *
>     - * @return Buffer type
>     - */
>     -int _odp_buffer_type(odp_buffer_t buf);
>     -
>      #ifdef __cplusplus
>      }
>      #endif
>     diff --git a/platform/linux-generic/odp_buffer.c
>     b/platform/linux-generic/odp_buffer.c
>     index d5d42a6..ec2bbba 100644
>     --- a/platform/linux-generic/odp_buffer.c
>     +++ b/platform/linux-generic/odp_buffer.c
>     @@ -39,14 +39,6 @@ uint32_t odp_buffer_size(odp_buffer_t buf)
>             return hdr->size;
>      }
>
>     -
>     -int _odp_buffer_type(odp_buffer_t buf)
>     -{
>     -       odp_buffer_hdr_t *hdr = odp_buf_to_hdr(buf);
>     -
>     -       return hdr->type;
>     -}
>     -
>      int odp_buffer_is_valid(odp_buffer_t buf)
>      {
>             return validate_buf(buf) != NULL;
>     --
>     2.1.4
>
>     _______________________________________________
>     lng-odp mailing list
>     lng-odp@lists.linaro.org <mailto:lng-odp@lists.linaro.org>
>     https://lists.linaro.org/mailman/listinfo/lng-odp
>
>
>
>
> -- 
> Mike Holmes
> Technical Manager - Linaro Networking Group
> Linaro.org <http://www.linaro.org/>***│ *Open source software for ARM SoCs
>
>
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> https://lists.linaro.org/mailman/listinfo/lng-odp
diff mbox

Patch

diff --git a/platform/linux-generic/include/odp_buffer_internal.h b/platform/linux-generic/include/odp_buffer_internal.h
index 7f3fa1c..462f4bf 100644
--- a/platform/linux-generic/include/odp_buffer_internal.h
+++ b/platform/linux-generic/include/odp_buffer_internal.h
@@ -167,16 +167,6 @@  typedef struct {
 /* Forward declarations */
 odp_buffer_t buffer_alloc(odp_pool_t pool, size_t size);
 
-
-/*
- * Buffer type
- *
- * @param buf      Buffer handle
- *
- * @return Buffer type
- */
-int _odp_buffer_type(odp_buffer_t buf);
-
 #ifdef __cplusplus
 }
 #endif
diff --git a/platform/linux-generic/odp_buffer.c b/platform/linux-generic/odp_buffer.c
index d5d42a6..ec2bbba 100644
--- a/platform/linux-generic/odp_buffer.c
+++ b/platform/linux-generic/odp_buffer.c
@@ -39,14 +39,6 @@  uint32_t odp_buffer_size(odp_buffer_t buf)
 	return hdr->size;
 }
 
-
-int _odp_buffer_type(odp_buffer_t buf)
-{
-	odp_buffer_hdr_t *hdr = odp_buf_to_hdr(buf);
-
-	return hdr->type;
-}
-
 int odp_buffer_is_valid(odp_buffer_t buf)
 {
 	return validate_buf(buf) != NULL;