Skip to content

Commit

Permalink
sparc: remove redundant return statements
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Engelhardt <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Jan Engelhardt authored and davem330 committed Feb 10, 2010
1 parent e28cab4 commit 1349ea0
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions arch/sparc/kernel/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,4 @@ void __init device_scan(void)

if (ARCH_SUN4C)
sun4c_probe_memerr_reg();

return;
}
2 changes: 0 additions & 2 deletions arch/sparc/kernel/pcic.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,6 @@ pcic_fill_irq(struct linux_pcic *pcic, struct pci_dev *dev, int node)
writew(ivec, pcic->pcic_regs+PCI_INT_SELECT_LO);
}
}

return;
}

/*
Expand Down
2 changes: 0 additions & 2 deletions arch/sparc/kernel/setup_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ static void prom_sync_me(void)
"nop\n\t"
"nop\n\t" : : "r" (prom_tbr));
local_irq_restore(flags);

return;
}

static unsigned int boot_flags __initdata = 0;
Expand Down
2 changes: 0 additions & 2 deletions arch/sparc/kernel/unaligned_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,6 @@ void handle_lddfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr
return;
}
advance(regs);
return;
}

void handle_stdfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr)
Expand Down Expand Up @@ -685,5 +684,4 @@ void handle_stdfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr
return;
}
advance(regs);
return;
}
1 change: 0 additions & 1 deletion arch/sparc/prom/console_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,4 @@ void
prom_putchar(char c)
{
while(prom_nbputchar(c) == -1) ;
return;
}
1 change: 0 additions & 1 deletion arch/sparc/prom/console_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ void
prom_putchar(char c)
{
prom_nbputchar(c);
return;
}

void
Expand Down
1 change: 0 additions & 1 deletion arch/sparc/prom/devmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@ prom_unmapio(char *vaddr, unsigned int num_bytes)
(*(romvec->pv_v2devops.v2_dumb_munmap))(vaddr, num_bytes);
restore_current();
spin_unlock_irqrestore(&prom_lock, flags);
return;
}
2 changes: 0 additions & 2 deletions arch/sparc/prom/devops_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,4 @@ prom_seek(int dhandle, unsigned int seekhi, unsigned int seeklo)
};
restore_current();
spin_unlock_irqrestore(&prom_lock, flags);

return;
}
1 change: 0 additions & 1 deletion arch/sparc/prom/init_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,4 @@ void __init prom_init(struct linux_romvec *rp)
romvec->pv_romvers, prom_rev);

/* Initialization successful. */
return;
}
1 change: 0 additions & 1 deletion arch/sparc/prom/palloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@ prom_free(char *vaddr, unsigned int num_bytes)
{
if((prom_vers == PROM_V0) || (num_bytes == 0x0)) return;
(*(romvec->pv_v2devops.v2_dumb_mem_free))(vaddr, num_bytes);
return;
}
2 changes: 0 additions & 2 deletions arch/sparc/prom/ranges.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ void __init prom_ranges_init(void)

if(num_obio_ranges)
prom_printf("PROMLIB: obio_ranges %d\n", num_obio_ranges);

return;
}

void
Expand Down
1 change: 0 additions & 1 deletion arch/sparc/prom/segment.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ prom_putsegment(int ctx, unsigned long vaddr, int segment)
(*(romvec->pv_setctxt))(ctx, (char *) vaddr, segment);
restore_current();
spin_unlock_irqrestore(&prom_lock, flags);
return;
}
1 change: 0 additions & 1 deletion arch/sparc/prom/tree_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ void prom_getstring(int node, char *prop, char *user_buf, int ubuf_size)
len = prom_getproperty(node, prop, user_buf, ubuf_size);
if(len != -1) return;
user_buf[0] = 0;
return;
}
EXPORT_SYMBOL(prom_getstring);

Expand Down
1 change: 0 additions & 1 deletion arch/sparc/prom/tree_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ void prom_getstring(int node, const char *prop, char *user_buf, int ubuf_size)
len = prom_getproperty(node, prop, user_buf, ubuf_size);
if(len != -1) return;
user_buf[0] = 0;
return;
}
EXPORT_SYMBOL(prom_getstring);

Expand Down

0 comments on commit 1349ea0

Please sign in to comment.