Message ID | 20250319112003.594938-1-sughosh.ganu@linaro.org |
---|---|
State | New |
Headers | show |
Series | cmd: cls: do not repeat clearing of console | expand |
On Wed, 19 Mar 2025 at 16:50, Sughosh Ganu <sughosh.ganu@linaro.org> wrote: > > There is no need to repeat the command to clear the console. Remove > it's repeat attribute. > > Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> > --- Can this be merged if there is no objection to the change? Thanks. -sughosh > cmd/cls.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/cmd/cls.c b/cmd/cls.c > index 4bee8a18305..b1e0619334b 100644 > --- a/cmd/cls.c > +++ b/cmd/cls.c > @@ -18,4 +18,4 @@ static int do_video_clear(struct cmd_tbl *cmdtp, int flag, int argc, > return CMD_RET_SUCCESS; > } > > -U_BOOT_CMD(cls, 1, 1, do_video_clear, "clear screen", ""); > +U_BOOT_CMD(cls, 1, 0, do_video_clear, "clear screen", ""); > -- > 2.34.1 >
diff --git a/cmd/cls.c b/cmd/cls.c index 4bee8a18305..b1e0619334b 100644 --- a/cmd/cls.c +++ b/cmd/cls.c @@ -18,4 +18,4 @@ static int do_video_clear(struct cmd_tbl *cmdtp, int flag, int argc, return CMD_RET_SUCCESS; } -U_BOOT_CMD(cls, 1, 1, do_video_clear, "clear screen", ""); +U_BOOT_CMD(cls, 1, 0, do_video_clear, "clear screen", "");
There is no need to repeat the command to clear the console. Remove it's repeat attribute. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> --- cmd/cls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)