Skip to contentSkip to conversation

mmc: vub300: remove unreachable code

PATCH In review Bo Liu 2 participants 2 messages Apr 12, 2023 – Apr 17, 2023 MMC, SD and SDIO

lore
Share & tools
lore

Bo Liu

author
#0 lore raw

PATCH 1/1 mmc: vub300: remove unreachable code

The function sched_partition_show cannot execute return, delete the invalid code.

---
 drivers/mmc/host/vub300.c | 2 --
 1 file changed, 2 deletions(-)
drivers/mmc/host/vub300.c +0 -2
index 72f65f32abbc..e4c4bfac3763 100644
@@ -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));
Signature · 1 line
2.27.0
#1 lore raw
Quoted 5 lines · Bo Liu

The function sched_partition_show cannot execute return, delete the invalid code.

Applied for next, thanks!

Kind regards
Uffe

Quoted 20 lines
---
 drivers/mmc/host/vub300.c | 2 --
 1 file changed, 2 deletions(-)
drivers/mmc/host/vub300.c +0 -3
index 72f65f32abbc..e4c4bfac3763 100644
@@ -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