sparc: remove redundant return statements
authorJan Engelhardt <jengelh@medozas.de>
Wed, 10 Feb 2010 19:47:57 +0000 (11:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Feb 2010 19:47:57 +0000 (11:47 -0800)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
14 files changed:
arch/sparc/kernel/devices.c
arch/sparc/kernel/pcic.c
arch/sparc/kernel/setup_32.c
arch/sparc/kernel/unaligned_64.c
arch/sparc/prom/console_32.c
arch/sparc/prom/console_64.c
arch/sparc/prom/devmap.c
arch/sparc/prom/devops_32.c
arch/sparc/prom/init_32.c
arch/sparc/prom/palloc.c
arch/sparc/prom/ranges.c
arch/sparc/prom/segment.c
arch/sparc/prom/tree_32.c
arch/sparc/prom/tree_64.c

index b171ae8de90dc5b49aa410c03c166603c37b4d02..89c22a2c085bb345905dd9656b5dea7f7c0d20fc 100644 (file)
@@ -143,6 +143,4 @@ void __init device_scan(void)
 
        if (ARCH_SUN4C)
                sun4c_probe_memerr_reg();
-
-       return;
 }
index 4e2724ec2bb6d6c3e660cf06feb7c62b1953fed1..0610e2edaa78c00b57adf36938d9afc2c834fc8d 100644 (file)
@@ -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;
 }
 
 /*
index 9be2af55c5cd5f93bfc15895a07192b355d2bb08..b22ce610040362e18f9e5b8f3f565056973e86ba 100644 (file)
@@ -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;
index 378ca82b9cccd4532d66b92e63b57676fa8672a5..a9bc6c696ca6e8aad203522d96d9d06edc46628d 100644 (file)
@@ -636,7 +636,6 @@ daex:
                return;
        }
        advance(regs);
-       return;
 }
 
 void handle_stdfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr)
@@ -685,5 +684,4 @@ daex:
                return;
        }
        advance(regs);
-       return;
 }
index b3075d73fc19e7f2bf765a4cff144aa27683334b..5340264b78f57c79dcd4f031d8348d31e9df1100 100644 (file)
@@ -94,5 +94,4 @@ void
 prom_putchar(char c)
 {
        while(prom_nbputchar(c) == -1) ;
-       return;
 }
index e1c3fc87484dd3978126050e60abc786cba8e0bb..f55d58a8a1567a653f8517598edcfe7f777b4257 100644 (file)
@@ -62,7 +62,6 @@ void
 prom_putchar(char c)
 {
        prom_nbputchar(c);
-       return;
 }
 
 void
index 1e517915b0df85b4cd49fc42047d87320e777e8a..46157d2aba0d0219d7dd41a6dda2f1be42b337ff 100644 (file)
@@ -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;
 }
index 9f1a95c91ad12f3b7742c381d9a0b864f79e97bb..9c5d4687242abf7e8eec6e815bcc27e7cc32b7bf 100644 (file)
@@ -84,6 +84,4 @@ prom_seek(int dhandle, unsigned int seekhi, unsigned int seeklo)
        };
        restore_current();
        spin_unlock_irqrestore(&prom_lock, flags);
-
-       return;
 }
index 6193c33ed4d4a2894e16838c2c4de6504d334d1e..ccb36c7f9b8c600d1e24bf322d4f36df833df553 100644 (file)
@@ -75,5 +75,4 @@ void __init prom_init(struct linux_romvec *rp)
               romvec->pv_romvers, prom_rev);
 
        /* Initialization successful. */
-       return;
 }
index 20be339cc2ce6a0a4b871d3b6f6fde863d62e067..2e2a88b211fb4da0fb144cd0281079702742e600 100644 (file)
@@ -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;
 }
index cd5790853ff6c56b19127a7e3eac20769276d30a..aeff43e44e45a9d03580558dd4d8bc8cda35e022 100644 (file)
@@ -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
index 04fd03a7f9260ffcaa31f49b5066f5eb84423546..86a663f1d3c5089defc8d1acf9af302410887f79 100644 (file)
@@ -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;
 }
index 646d244b1fdb90c32381ca94d9bba67e122efa8f..b21592f8e3fe98db86e3fd1c69e72666989d8bce 100644 (file)
@@ -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);
 
index 8ea73ddc61dcb6fc69e62a235e98e5066fee29b8..3c0d2dd9f6939faf1daf53f61141c785001429b4 100644 (file)
@@ -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);