mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fs: jffs2: Fix inconsistent indentation in jffs2_mark_node_obsolete
@ 2024-10-08 18:24 SurajSonawane2415
  2024-10-09  1:07 ` Zhihao Cheng
  0 siblings, 1 reply; 2+ messages in thread
From: SurajSonawane2415 @ 2024-10-08 18:24 UTC (permalink / raw)
  To: dwmw2, richard; +Cc: linux-mtd, linux-kernel, surajsonawane0215

From: Suraj Sonawane <surajsonawane0215@gmail.com>

Fix the indentation to ensure consistent code style and improve
readability, and to fix this warnings:
fs/jffs2/nodemgmt.c:635 jffs2_mark_node_obsolete() warn: inconsistent
indenting
fs/jffs2/nodemgmt.c:646 jffs2_mark_node_obsolete() warn: inconsistent
indenting

Signed-off-by: Suraj Sonawane <surajsonawane0215@gmail.com>
---
 fs/jffs2/nodemgmt.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/fs/jffs2/nodemgmt.c b/fs/jffs2/nodemgmt.c
index bbab2bdc7..cc51c85ef 100644
--- a/fs/jffs2/nodemgmt.c
+++ b/fs/jffs2/nodemgmt.c
@@ -630,8 +630,8 @@ void jffs2_mark_node_obsolete(struct jffs2_sb_info *c, struct jffs2_raw_node_ref
 					  ref->flash_offset, jeb->used_size);
 			BUG();
 		})
-			jffs2_dbg(1, "Obsoleting previously unchecked node at 0x%08x of len %x\n",
-				  ref_offset(ref), freed_len);
+		jffs2_dbg(1, "Obsoleting previously unchecked node at 0x%08x of len %x\n",
+				ref_offset(ref), freed_len);
 		jeb->unchecked_size -= freed_len;
 		c->unchecked_size -= freed_len;
 	} else {
@@ -641,8 +641,8 @@ void jffs2_mark_node_obsolete(struct jffs2_sb_info *c, struct jffs2_raw_node_ref
 					  ref->flash_offset, jeb->used_size);
 			BUG();
 		})
-			jffs2_dbg(1, "Obsoleting node at 0x%08x of len %#x: ",
-				  ref_offset(ref), freed_len);
+		jffs2_dbg(1, "Obsoleting node at 0x%08x of len %#x: ",
+				ref_offset(ref), freed_len);
 		jeb->used_size -= freed_len;
 		c->used_size -= freed_len;
 	}
-- 
2.34.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] fs: jffs2: Fix inconsistent indentation in jffs2_mark_node_obsolete
  2024-10-08 18:24 [PATCH] fs: jffs2: Fix inconsistent indentation in jffs2_mark_node_obsolete SurajSonawane2415
@ 2024-10-09  1:07 ` Zhihao Cheng
  0 siblings, 0 replies; 2+ messages in thread
From: Zhihao Cheng @ 2024-10-09  1:07 UTC (permalink / raw)
  To: SurajSonawane2415, dwmw2, richard; +Cc: linux-mtd, linux-kernel

在 2024/10/9 2:24, SurajSonawane2415 写道:
> From: Suraj Sonawane <surajsonawane0215@gmail.com>
> 
> Fix the indentation to ensure consistent code style and improve
> readability, and to fix this warnings:
> fs/jffs2/nodemgmt.c:635 jffs2_mark_node_obsolete() warn: inconsistent
> indenting
> fs/jffs2/nodemgmt.c:646 jffs2_mark_node_obsolete() warn: inconsistent
> indenting
> 
> Signed-off-by: Suraj Sonawane <surajsonawane0215@gmail.com>
> ---
>   fs/jffs2/nodemgmt.c | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
> 

Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
> diff --git a/fs/jffs2/nodemgmt.c b/fs/jffs2/nodemgmt.c
> index bbab2bdc7..cc51c85ef 100644
> --- a/fs/jffs2/nodemgmt.c
> +++ b/fs/jffs2/nodemgmt.c
> @@ -630,8 +630,8 @@ void jffs2_mark_node_obsolete(struct jffs2_sb_info *c, struct jffs2_raw_node_ref
>   					  ref->flash_offset, jeb->used_size);
>   			BUG();
>   		})
> -			jffs2_dbg(1, "Obsoleting previously unchecked node at 0x%08x of len %x\n",
> -				  ref_offset(ref), freed_len);
> +		jffs2_dbg(1, "Obsoleting previously unchecked node at 0x%08x of len %x\n",
> +				ref_offset(ref), freed_len);
>   		jeb->unchecked_size -= freed_len;
>   		c->unchecked_size -= freed_len;
>   	} else {
> @@ -641,8 +641,8 @@ void jffs2_mark_node_obsolete(struct jffs2_sb_info *c, struct jffs2_raw_node_ref
>   					  ref->flash_offset, jeb->used_size);
>   			BUG();
>   		})
> -			jffs2_dbg(1, "Obsoleting node at 0x%08x of len %#x: ",
> -				  ref_offset(ref), freed_len);
> +		jffs2_dbg(1, "Obsoleting node at 0x%08x of len %#x: ",
> +				ref_offset(ref), freed_len);
>   		jeb->used_size -= freed_len;
>   		c->used_size -= freed_len;
>   	}
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-09  1:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-08 18:24 [PATCH] fs: jffs2: Fix inconsistent indentation in jffs2_mark_node_obsolete SurajSonawane2415
2024-10-09  1:07 ` Zhihao Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®