1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-02 09:12:08 +02:00

treewide: Remove the unnecessary space before semicolon

%s/return ;/return;

Signed-off-by: Bin Meng <bmeng@tinylab.org>
This commit is contained in:
Bin Meng
2022-10-26 12:40:07 +08:00
committed by Tom Rini
parent aa59c1bec7
commit ea253ad7b5
13 changed files with 21 additions and 21 deletions

View File

@@ -446,7 +446,7 @@ ulong cpu_init_f(void)
/* Implement a dummy function for those platforms w/o SERDES */ /* Implement a dummy function for those platforms w/o SERDES */
static void __fsl_serdes__init(void) static void __fsl_serdes__init(void)
{ {
return ; return;
} }
__attribute__((weak, alias("__fsl_serdes__init"))) void fsl_serdes_init(void); __attribute__((weak, alias("__fsl_serdes__init"))) void fsl_serdes_init(void);

View File

@@ -76,7 +76,7 @@ void setup_ifc(void)
ifc_out32(&(ifc_regs.gregs->csor_cs[0].csor), CONFIG_SYS_CSOR0); ifc_out32(&(ifc_regs.gregs->csor_cs[0].csor), CONFIG_SYS_CSOR0);
ifc_out32(&(ifc_regs.gregs->amask_cs[0].amask), CONFIG_SYS_AMASK0); ifc_out32(&(ifc_regs.gregs->amask_cs[0].amask), CONFIG_SYS_AMASK0);
return ; return;
} }
#endif #endif

View File

@@ -271,13 +271,13 @@ static inline void ft_fixup_l2cache(void *blob)
if (ph == NULL) { if (ph == NULL) {
debug("no next-level-cache property\n"); debug("no next-level-cache property\n");
return ; return;
} }
off = fdt_node_offset_by_phandle(blob, *ph); off = fdt_node_offset_by_phandle(blob, *ph);
if (off < 0) { if (off < 0) {
printf("%s: %s\n", __func__, fdt_strerror(off)); printf("%s: %s\n", __func__, fdt_strerror(off));
return ; return;
} }
ft_fixup_l2cache_compatible(blob, off); ft_fixup_l2cache_compatible(blob, off);
@@ -373,7 +373,7 @@ next:
l3_off = fdt_node_offset_by_phandle(blob, l3_off); l3_off = fdt_node_offset_by_phandle(blob, l3_off);
if (l3_off < 0) { if (l3_off < 0) {
printf("%s: %s\n", __func__, fdt_strerror(off)); printf("%s: %s\n", __func__, fdt_strerror(off));
return ; return;
} }
ft_fixup_l3cache(blob, l3_off); ft_fixup_l3cache(blob, l3_off);
} }

View File

@@ -111,7 +111,7 @@ static void setup_fman_liodn_base(enum fsl_dpaa_dev dev,
#endif #endif
default: default:
printf("Error: Invalid device type to %s\n", __FUNCTION__); printf("Error: Invalid device type to %s\n", __FUNCTION__);
return ; return;
} }
base = (liodn_bases[dev].id[0] << 16) | liodn_bases[dev].id[0]; base = (liodn_bases[dev].id[0] << 16) | liodn_bases[dev].id[0];
@@ -232,7 +232,7 @@ static void fdt_fixup_srio_liodn(void *blob, struct srio_liodn_id_table *tbl)
/* search for srio node, if doesn't exist just return - nothing todo */ /* search for srio node, if doesn't exist just return - nothing todo */
srio_off = fdt_node_offset_by_compatible(blob, -1, "fsl,srio"); srio_off = fdt_node_offset_by_compatible(blob, -1, "fsl,srio");
if (srio_off < 0) if (srio_off < 0)
return ; return;
for (i = 0; i < srio_liodn_tbl_sz; i++) { for (i = 0; i < srio_liodn_tbl_sz; i++) {
int off, portid = tbl[i].portid; int off, portid = tbl[i].portid;

View File

@@ -45,7 +45,7 @@ void fsl_serdes_init(void)
if (srds1_cfg >= ARRAY_SIZE(serdes1_cfg_tbl)) { if (srds1_cfg >= ARRAY_SIZE(serdes1_cfg_tbl)) {
printf("Invalid PORDEVSR[IO_SEL] = %d\n", srds1_cfg); printf("Invalid PORDEVSR[IO_SEL] = %d\n", srds1_cfg);
return ; return;
} }
for (lane = 0; lane < SRDS1_MAX_LANES; lane++) { for (lane = 0; lane < SRDS1_MAX_LANES; lane++) {

View File

@@ -21,7 +21,7 @@ void fdt_portal(void *blob, const char *compat, const char *container,
off = fdt_node_offset_by_compatible(blob, -1, compat); off = fdt_node_offset_by_compatible(blob, -1, compat);
if (off < 0) if (off < 0)
return ; return;
off = fdt_parent_offset(blob, off); off = fdt_parent_offset(blob, off);
/* if non-zero assume we have a container */ /* if non-zero assume we have a container */
@@ -35,7 +35,7 @@ void fdt_portal(void *blob, const char *compat, const char *container,
range = fdt_getprop_w(blob, off, "ranges", &len); range = fdt_getprop_w(blob, off, "ranges", &len);
if (range == NULL) { if (range == NULL) {
printf("ERROR: container for %s has no ranges", compat); printf("ERROR: container for %s has no ranges", compat);
return ; return;
} }
range[0] = 0; range[0] = 0;
@@ -61,13 +61,13 @@ void fdt_portal(void *blob, const char *compat, const char *container,
if (container && (memcmp(container, name, len))) { if (container && (memcmp(container, name, len))) {
printf("WARNING: container names didn't match %s %s\n", printf("WARNING: container names didn't match %s %s\n",
container, name); container, name);
return ; return;
} }
memcpy(&buf, name, len); memcpy(&buf, name, len);
len += sprintf(&buf[len], "@%llx", addr); len += sprintf(&buf[len], "@%llx", addr);
fdt_set_name(blob, off, buf); fdt_set_name(blob, off, buf);
return ; return;
} }
printf("ERROR: %s isn't in a container. Not supported\n", compat); printf("ERROR: %s isn't in a container. Not supported\n", compat);

View File

@@ -41,7 +41,7 @@ __weak void init_tlbs(void)
tlb_table[i].mas7); tlb_table[i].mas7);
} }
return ; return;
} }
#if !defined(CONFIG_NAND_SPL) && \ #if !defined(CONFIG_NAND_SPL) && \

View File

@@ -128,7 +128,7 @@ void ft_srio_setup(void *blob)
/* search for srio node, if doesn't exist just return - nothing todo */ /* search for srio node, if doesn't exist just return - nothing todo */
srio_off = fdt_node_offset_by_compatible(blob, -1, "fsl,srio"); srio_off = fdt_node_offset_by_compatible(blob, -1, "fsl,srio");
if (srio_off < 0) if (srio_off < 0)
return ; return;
#ifdef CONFIG_SRIO1 #ifdef CONFIG_SRIO1
if (is_serdes_configured(SRIO1)) if (is_serdes_configured(SRIO1))

View File

@@ -353,5 +353,5 @@ void init_laws(void)
} }
#endif #endif
return ; return;
} }

View File

@@ -113,7 +113,7 @@ static void boot_jump_linux(struct bootm_headers *images)
cmd_start, cmd_end, 0, 0); cmd_start, cmd_end, 0, 0);
/* does not return */ /* does not return */
} }
return ; return;
} }
void arch_lmb_reserve(struct lmb *lmb) void arch_lmb_reserve(struct lmb *lmb)
@@ -148,7 +148,7 @@ void arch_lmb_reserve(struct lmb *lmb)
cpu_mp_lmb_reserve(lmb); cpu_mp_lmb_reserve(lmb);
#endif #endif
return ; return;
} }
static void boot_prep_linux(struct bootm_headers *images) static void boot_prep_linux(struct bootm_headers *images)

View File

@@ -234,7 +234,7 @@ static void reset_net_chip(void)
ret = gpio_request(rst_gpio, ""); ret = gpio_request(rst_gpio, "");
if (ret < 0) { if (ret < 0) {
printf("Unable to get GPIO %d\n", rst_gpio); printf("Unable to get GPIO %d\n", rst_gpio);
return ; return;
} }
/* Configure as output */ /* Configure as output */

View File

@@ -147,7 +147,7 @@ __fsl_ddr_set_lawbar(const common_timing_params_t *memctl_common_params,
if (set_ddr_laws(base, size, law_memctl) < 0) { if (set_ddr_laws(base, size, law_memctl) < 0) {
printf("%s: ERROR (ctrl #%d, TRGT ID=%x)\n", __func__, ctrl_num, printf("%s: ERROR (ctrl #%d, TRGT ID=%x)\n", __func__, ctrl_num,
law_memctl); law_memctl);
return ; return;
} }
debug("setup ddr law base = 0x%llx, size 0x%llx, TRGT_ID 0x%x\n", debug("setup ddr law base = 0x%llx, size 0x%llx, TRGT_ID 0x%x\n",
base, size, law_memctl); base, size, law_memctl);

View File

@@ -149,7 +149,7 @@ void fman_enet_init(void)
} }
} }
return ; return;
} }
void fm_disable_port(enum fm_port port) void fm_disable_port(enum fm_port port)
@@ -233,7 +233,7 @@ static void
__def_board_ft_fman_fixup_port(void *blob, char * prop, phys_addr_t pa, __def_board_ft_fman_fixup_port(void *blob, char * prop, phys_addr_t pa,
enum fm_port port, int offset) enum fm_port port, int offset)
{ {
return ; return;
} }
void board_ft_fman_fixup_port(void *blob, char * prop, phys_addr_t pa, void board_ft_fman_fixup_port(void *blob, char * prop, phys_addr_t pa,