* [PATCH v2] ubifs: dump_lpt_leb: remove return at end of void function
@ 2024-12-09 13:59 Pintu Kumar
2024-12-09 14:16 ` Zhihao Cheng
0 siblings, 1 reply; 2+ messages in thread
From: Pintu Kumar @ 2024-12-09 13:59 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 dump_lpt_leb().
Just removing it.
Signed-off-by: Pintu Kumar <quic_pintu@quicinc.com>
---
Changes in V2:
Change commit title as suggested by Zhihao Cheng.
V1: https://lore.kernel.org/all/abe79e0a-a35f-0b53-bbec-7d642f592fae@huawei.com/
---
fs/ubifs/lpt_commit.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/ubifs/lpt_commit.c b/fs/ubifs/lpt_commit.c
index aa8837e6247c..f2cb214581fd 100644
--- a/fs/ubifs/lpt_commit.c
+++ b/fs/ubifs/lpt_commit.c
@@ -1932,7 +1932,6 @@ static void dump_lpt_leb(const struct ubifs_info *c, int lnum)
pr_err("(pid %d) finish dumping LEB %d\n", current->pid, lnum);
out:
vfree(buf);
- return;
}
/**
--
2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH v2] ubifs: dump_lpt_leb: remove return at end of void function
2024-12-09 13:59 [PATCH v2] ubifs: dump_lpt_leb: remove return at end of void function Pintu Kumar
@ 2024-12-09 14:16 ` Zhihao Cheng
0 siblings, 0 replies; 2+ messages in thread
From: Zhihao Cheng @ 2024-12-09 14:16 UTC (permalink / raw)
To: Pintu Kumar, richard, linux-mtd, linux-kernel; +Cc: skhan, pintu.ping
在 2024/12/9 21:59, Pintu Kumar 写道:
> Noticed that there is a useless return statement at the end of void
> function dump_lpt_leb().
> Just removing it.
>
> Signed-off-by: Pintu Kumar <quic_pintu@quicinc.com>
>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
> ---
> Changes in V2:
> Change commit title as suggested by Zhihao Cheng.
> V1: https://lore.kernel.org/all/abe79e0a-a35f-0b53-bbec-7d642f592fae@huawei.com/
> ---
> fs/ubifs/lpt_commit.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/fs/ubifs/lpt_commit.c b/fs/ubifs/lpt_commit.c
> index aa8837e6247c..f2cb214581fd 100644
> --- a/fs/ubifs/lpt_commit.c
> +++ b/fs/ubifs/lpt_commit.c
> @@ -1932,7 +1932,6 @@ static void dump_lpt_leb(const struct ubifs_info *c, int lnum)
> pr_err("(pid %d) finish dumping LEB %d\n", current->pid, lnum);
> out:
> vfree(buf);
> - return;
> }
>
> /**
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-09 14:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-09 13:59 [PATCH v2] ubifs: dump_lpt_leb: remove return at end of void function Pintu Kumar
2024-12-09 14:16 ` 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®