[PATCH][next] ocfs2: Remove space before newline

Colin Ian King posted 1 patch 2 months, 1 week ago
fs/ocfs2/super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH][next] ocfs2: Remove space before newline
Posted by Colin Ian King 2 months, 1 week ago
There is an extraneous space before a newline in a mlog error message.
Remove it

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
 fs/ocfs2/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
index a4f5a868bec1..4b3ea721395c 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -2108,7 +2108,7 @@ static int ocfs2_initialize_super(struct super_block *sb,
 		if (strlen(osb->osb_cluster_stack) != OCFS2_STACK_LABEL_LEN) {
 			mlog(ML_ERROR,
 			     "couldn't mount because of an invalid "
-			     "cluster stack label (%s) \n",
+			     "cluster stack label (%s)\n",
 			     osb->osb_cluster_stack);
 			status = -EINVAL;
 			goto out_orphan_wipes;
-- 
2.50.0
Re: [PATCH] ocfs2: Remove space before newline
Posted by Markus Elfring 2 months, 1 week ago
…
> Remove it

  Thus delete a redundant character.?


…
> +++ b/fs/ocfs2/super.c
> @@ -2108,7 +2108,7 @@ static int ocfs2_initialize_super(struct super_block *sb,
>  		if (strlen(osb->osb_cluster_stack) != OCFS2_STACK_LABEL_LEN) {
>  			mlog(ML_ERROR,
>  			     "couldn't mount because of an invalid "
> -			     "cluster stack label (%s) \n",
> +			     "cluster stack label (%s)\n",
>  			     osb->osb_cluster_stack);
…

You may recombine such string literals.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?h=v6.16#n116

Regards,
Markus