diff mbox series

[01/14] env: sf: Cosmetic fix in env_sf_init_addr()

Message ID 20211022134725.26004-2-kabel@kernel.org
State Accepted
Commit 9ab30d2bafa0ee98e9048afcb575b6013f933f3c
Delegated to: Simon Glass
Headers show
Series Some more env fixes | expand

Commit Message

Marek Behún Oct. 22, 2021, 1:47 p.m. UTC
From: Marek Behún <marek.behun@nic.cz>

In the if clause we use tabs and in the else clause spaces. Let's use
spaces in the if clause too.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
---
 env/sf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Simon Glass Oct. 22, 2021, 4:08 p.m. UTC | #1
On Fri, 22 Oct 2021 at 07:47, Marek Behún <kabel@kernel.org> wrote:
>
> From: Marek Behún <marek.behun@nic.cz>
>
> In the if clause we use tabs and in the else clause spaces. Let's use
> spaces in the if clause too.
>
> Signed-off-by: Marek Behún <marek.behun@nic.cz>
> ---
>  env/sf.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Simon Glass Oct. 31, 2021, 12:57 p.m. UTC | #2
On Fri, 22 Oct 2021 at 07:47, Marek Behún <kabel@kernel.org> wrote:
>
> From: Marek Behún <marek.behun@nic.cz>
>
> In the if clause we use tabs and in the else clause spaces. Let's use
> spaces in the if clause too.
>
> Signed-off-by: Marek Behún <marek.behun@nic.cz>
> ---
>  env/sf.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-dm, thanks!
diff mbox series

Patch

diff --git a/env/sf.c b/env/sf.c
index e4b7ca9e04..4096e18387 100644
--- a/env/sf.c
+++ b/env/sf.c
@@ -338,8 +338,8 @@  static int env_sf_init_addr(void)
 	env_t *env_ptr = (env_t *)env_sf_get_env_addr();
 
 	if (crc32(0, env_ptr->data, ENV_SIZE) == env_ptr->crc) {
-		gd->env_addr	= (ulong)&(env_ptr->data);
-		gd->env_valid	= 1;
+		gd->env_addr = (ulong)&(env_ptr->data);
+		gd->env_valid = 1;
 	} else {
 		gd->env_addr = (ulong)&default_environment[0];
 		gd->env_valid = 1;