diff mbox

[ODP/PATCHv2] buffer_pool code clean up

Message ID 1396282711-17611-1-git-send-email-maxim.uvarov@linaro.org
State Superseded
Headers show

Commit Message

Maxim Uvarov March 31, 2014, 4:18 p.m. UTC
Remove not needed empty lines.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
---
 platform/linux-generic/source/odp_buffer_pool.c | 5 -----
 1 file changed, 5 deletions(-)

Comments

Maxim Uvarov March 31, 2014, 4:49 p.m. UTC | #1
Please skip this patch. Included that chunks to next:
[ODP/PATCH] code clean up and minor style fix

Maxim.

On 03/31/2014 08:18 PM, Maxim Uvarov wrote:
> Remove not needed empty lines.
>
> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
> ---
>   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;
>   }
>
diff mbox

Patch

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;
 }