public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] ubifs/debug: remove return from end of void function
@ 2024-12-06 12:52 Pintu Kumar
  2024-12-07  2:55 ` Zhihao Cheng
  0 siblings, 1 reply; 3+ messages in thread
From: Pintu Kumar @ 2024-12-06 12:52 UTC (permalink / raw)
  To: richard, chengzhihao1, linux-mtd, linux-kernel
  Cc: skhan, pintu.ping, Pintu Kumar

Noticed that there is a useless return statement at the end of void
function ubifs_dump_leb().
Just removed it.

Signed-off-by: Pintu Kumar <quic_pintu@quicinc.com>
---
 fs/ubifs/debug.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
index 5cc69beaa62e..987eb5b6782a 100644
--- a/fs/ubifs/debug.c
+++ b/fs/ubifs/debug.c
@@ -863,7 +863,6 @@ void ubifs_dump_leb(const struct ubifs_info *c, int lnum)
 
 out:
 	vfree(buf);
-	return;
 }
 
 void ubifs_dump_znode(const struct ubifs_info *c,
-- 
2.17.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* Re: [PATCH] ubifs/debug: remove return from end of void function
  2024-12-06 12:52 [PATCH] ubifs/debug: remove return from end of void function Pintu Kumar
@ 2024-12-07  2:55 ` Zhihao Cheng
  2024-12-07 18:03   ` Pintu Agarwal
  0 siblings, 1 reply; 3+ messages in thread
From: Zhihao Cheng @ 2024-12-07  2:55 UTC (permalink / raw)
  To: Pintu Kumar, richard, linux-mtd, linux-kernel; +Cc: skhan, pintu.ping

在 2024/12/6 20:52, Pintu Kumar 写道:
> Noticed that there is a useless return statement at the end of void
> function ubifs_dump_leb().
> Just removed it.
> 
> Signed-off-by: Pintu Kumar <quic_pintu@quicinc.com>
> ---
>   fs/ubifs/debug.c | 1 -
>   1 file changed, 1 deletion(-)

Hi, Pintu. The title of the patch should be something like "ubifs: 
ubifs_dump_leb: remove return at end of void function". See 
Documentation/process/submitting-patches.rst. Otherwise,

Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>

> 
> diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
> index 5cc69beaa62e..987eb5b6782a 100644
> --- a/fs/ubifs/debug.c
> +++ b/fs/ubifs/debug.c
> @@ -863,7 +863,6 @@ void ubifs_dump_leb(const struct ubifs_info *c, int lnum)
>   
>   out:
>   	vfree(buf);
> -	return;
>   }
>   
>   void ubifs_dump_znode(const struct ubifs_info *c,
> 


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* Re: [PATCH] ubifs/debug: remove return from end of void function
  2024-12-07  2:55 ` Zhihao Cheng
@ 2024-12-07 18:03   ` Pintu Agarwal
  0 siblings, 0 replies; 3+ messages in thread
From: Pintu Agarwal @ 2024-12-07 18:03 UTC (permalink / raw)
  To: Zhihao Cheng; +Cc: Pintu Kumar, richard, linux-mtd, linux-kernel, skhan

Hi Zhihao,

On Sat, 7 Dec 2024 at 08:25, Zhihao Cheng <chengzhihao1@huawei.com> wrote:
>
> 在 2024/12/6 20:52, Pintu Kumar 写道:
> > Noticed that there is a useless return statement at the end of void
> > function ubifs_dump_leb().
> > Just removed it.
> >
> > Signed-off-by: Pintu Kumar <quic_pintu@quicinc.com>
> > ---
> >   fs/ubifs/debug.c | 1 -
> >   1 file changed, 1 deletion(-)
>
> Hi, Pintu. The title of the patch should be something like "ubifs:
> ubifs_dump_leb: remove return at end of void function". See
> Documentation/process/submitting-patches.rst. Otherwise,
>
> Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
>
Thank you so much for your review and comments.
Oh, normally I follow "subsystem: filename: <title>" for the other patches.
Okay, no worries, I can follow your suggestion as "subsystem: function-name"
and push changes again for both the patches.

Actually, sometimes, function-name can be quite big, so I avoid it in
subject titles.
But no issues, I can change it and push again.

Thank you,
Regards,
Pintu

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

end of thread, other threads:[~2024-12-07 18:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-06 12:52 [PATCH] ubifs/debug: remove return from end of void function Pintu Kumar
2024-12-07  2:55 ` Zhihao Cheng
2024-12-07 18:03   ` Pintu Agarwal

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