* [PATCH] mmc: vub300: remove unreachable code
@ 2023-04-12 8:47 Bo Liu
2023-04-17 14:54 ` Ulf Hansson
0 siblings, 1 reply; 2+ messages in thread
From: Bo Liu @ 2023-04-12 8:47 UTC (permalink / raw)
To: ulf.hansson; +Cc: linux-mmc, linux-kernel, Bo Liu
The function sched_partition_show cannot execute return, delete the
invalid code.
Signed-off-by: Bo Liu <liubo03@inspur.com>
---
drivers/mmc/host/vub300.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/mmc/host/vub300.c b/drivers/mmc/host/vub300.c
index 72f65f32abbc..e4c4bfac3763 100644
--- a/drivers/mmc/host/vub300.c
+++ b/drivers/mmc/host/vub300.c
@@ -1341,8 +1341,6 @@ static void __download_offload_pseudocode(struct vub300_mmc_host *vub300,
return;
}
- return;
-
copy_error_message:
strncpy(vub300->vub_name, "SDIO pseudocode download failed",
sizeof(vub300->vub_name));
--
2.27.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mmc: vub300: remove unreachable code
2023-04-12 8:47 [PATCH] mmc: vub300: remove unreachable code Bo Liu
@ 2023-04-17 14:54 ` Ulf Hansson
0 siblings, 0 replies; 2+ messages in thread
From: Ulf Hansson @ 2023-04-17 14:54 UTC (permalink / raw)
To: Bo Liu; +Cc: linux-mmc, linux-kernel
On Wed, 12 Apr 2023 at 10:48, Bo Liu <liubo03@inspur.com> wrote:
>
> The function sched_partition_show cannot execute return, delete the
> invalid code.
>
> Signed-off-by: Bo Liu <liubo03@inspur.com>
Applied for next, thanks!
Kind regards
Uffe
> ---
> drivers/mmc/host/vub300.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/mmc/host/vub300.c b/drivers/mmc/host/vub300.c
> index 72f65f32abbc..e4c4bfac3763 100644
> --- a/drivers/mmc/host/vub300.c
> +++ b/drivers/mmc/host/vub300.c
> @@ -1341,8 +1341,6 @@ static void __download_offload_pseudocode(struct vub300_mmc_host *vub300,
> return;
> }
>
> - return;
> -
> copy_error_message:
> strncpy(vub300->vub_name, "SDIO pseudocode download failed",
> sizeof(vub300->vub_name));
> --
> 2.27.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-17 14:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-12 8:47 [PATCH] mmc: vub300: remove unreachable code Bo Liu
2023-04-17 14:54 ` Ulf Hansson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.