Patchwork [U-Boot] Small coding style fix in lib/asm-offsets.c

login
register
mail settings
Submitter Stefan Roese
Date Jan. 10, 2011, 11:48 a.m.
Message ID <1294660080-30928-1-git-send-email-sr@denx.de>
Download mbox | patch
Permalink /patch/78127/
State Accepted
Commit 0c51c245a16c9526763f30c2b120edf9de8da173
Headers show

Comments

Stefan Roese - Jan. 10, 2011, 11:48 a.m.
Signed-off-by: Stefan Roese <sr@denx.de>
---
 lib/asm-offsets.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Michal Simek - Jan. 10, 2011, 3:56 p.m.
Stefan Roese wrote:
> Signed-off-by: Stefan Roese <sr@denx.de>

Thanks Stefan.

Acked-by: Michal Simek <monstr@monstr.eu>

Michal

> ---
>  lib/asm-offsets.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/lib/asm-offsets.c b/lib/asm-offsets.c
> index 6f253a6..c88f5d4 100644
> --- a/lib/asm-offsets.c
> +++ b/lib/asm-offsets.c
> @@ -23,10 +23,10 @@ int main(void)
>  {
>  	/* Round up to make sure size gives nice stack alignment */
>  	DEFINE(GENERATED_GBL_DATA_SIZE,
> -		(sizeof(struct global_data)+15) & ~15);
> +		(sizeof(struct global_data) + 15) & ~15);
>  
>  	DEFINE(GENERATED_BD_INFO_SIZE,
> -		(sizeof(struct bd_info)+15) & ~15);
> +		(sizeof(struct bd_info) + 15) & ~15);
>  
>  	return 0;
>  }
Wolfgang Denk - Jan. 17, 2011, 9:56 p.m.
Dear Stefan Roese,

In message <1294660080-30928-1-git-send-email-sr@denx.de> you wrote:
> Signed-off-by: Stefan Roese <sr@denx.de>
> ---
>  lib/asm-offsets.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/lib/asm-offsets.c b/lib/asm-offsets.c
index 6f253a6..c88f5d4 100644
--- a/lib/asm-offsets.c
+++ b/lib/asm-offsets.c
@@ -23,10 +23,10 @@  int main(void)
 {
 	/* Round up to make sure size gives nice stack alignment */
 	DEFINE(GENERATED_GBL_DATA_SIZE,
-		(sizeof(struct global_data)+15) & ~15);
+		(sizeof(struct global_data) + 15) & ~15);
 
 	DEFINE(GENERATED_BD_INFO_SIZE,
-		(sizeof(struct bd_info)+15) & ~15);
+		(sizeof(struct bd_info) + 15) & ~15);
 
 	return 0;
 }