diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-02-10 14:47:57 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-10 14:47:57 -0500 |
commit | 1349ea08e8de7b3e09998f33ea4e6c74f3e0db1a (patch) | |
tree | 541f95834e6da7b92d938585f30ad2586804f92a /arch/sparc/prom | |
parent | e28cab42f384745c8a947a9ccd51e4aae52f5d51 (diff) |
sparc: remove redundant return statements
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/prom')
-rw-r--r-- | arch/sparc/prom/console_32.c | 1 | ||||
-rw-r--r-- | arch/sparc/prom/console_64.c | 1 | ||||
-rw-r--r-- | arch/sparc/prom/devmap.c | 1 | ||||
-rw-r--r-- | arch/sparc/prom/devops_32.c | 2 | ||||
-rw-r--r-- | arch/sparc/prom/init_32.c | 1 | ||||
-rw-r--r-- | arch/sparc/prom/palloc.c | 1 | ||||
-rw-r--r-- | arch/sparc/prom/ranges.c | 2 | ||||
-rw-r--r-- | arch/sparc/prom/segment.c | 1 | ||||
-rw-r--r-- | arch/sparc/prom/tree_32.c | 1 | ||||
-rw-r--r-- | arch/sparc/prom/tree_64.c | 1 |
10 files changed, 0 insertions, 12 deletions
diff --git a/arch/sparc/prom/console_32.c b/arch/sparc/prom/console_32.c index b3075d73fc19..5340264b78f5 100644 --- a/arch/sparc/prom/console_32.c +++ b/arch/sparc/prom/console_32.c | |||
@@ -94,5 +94,4 @@ void | |||
94 | prom_putchar(char c) | 94 | prom_putchar(char c) |
95 | { | 95 | { |
96 | while(prom_nbputchar(c) == -1) ; | 96 | while(prom_nbputchar(c) == -1) ; |
97 | return; | ||
98 | } | 97 | } |
diff --git a/arch/sparc/prom/console_64.c b/arch/sparc/prom/console_64.c index e1c3fc87484d..f55d58a8a156 100644 --- a/arch/sparc/prom/console_64.c +++ b/arch/sparc/prom/console_64.c | |||
@@ -62,7 +62,6 @@ void | |||
62 | prom_putchar(char c) | 62 | prom_putchar(char c) |
63 | { | 63 | { |
64 | prom_nbputchar(c); | 64 | prom_nbputchar(c); |
65 | return; | ||
66 | } | 65 | } |
67 | 66 | ||
68 | void | 67 | void |
diff --git a/arch/sparc/prom/devmap.c b/arch/sparc/prom/devmap.c index 1e517915b0df..46157d2aba0d 100644 --- a/arch/sparc/prom/devmap.c +++ b/arch/sparc/prom/devmap.c | |||
@@ -50,5 +50,4 @@ prom_unmapio(char *vaddr, unsigned int num_bytes) | |||
50 | (*(romvec->pv_v2devops.v2_dumb_munmap))(vaddr, num_bytes); | 50 | (*(romvec->pv_v2devops.v2_dumb_munmap))(vaddr, num_bytes); |
51 | restore_current(); | 51 | restore_current(); |
52 | spin_unlock_irqrestore(&prom_lock, flags); | 52 | spin_unlock_irqrestore(&prom_lock, flags); |
53 | return; | ||
54 | } | 53 | } |
diff --git a/arch/sparc/prom/devops_32.c b/arch/sparc/prom/devops_32.c index 9f1a95c91ad1..9c5d4687242a 100644 --- a/arch/sparc/prom/devops_32.c +++ b/arch/sparc/prom/devops_32.c | |||
@@ -84,6 +84,4 @@ prom_seek(int dhandle, unsigned int seekhi, unsigned int seeklo) | |||
84 | }; | 84 | }; |
85 | restore_current(); | 85 | restore_current(); |
86 | spin_unlock_irqrestore(&prom_lock, flags); | 86 | spin_unlock_irqrestore(&prom_lock, flags); |
87 | |||
88 | return; | ||
89 | } | 87 | } |
diff --git a/arch/sparc/prom/init_32.c b/arch/sparc/prom/init_32.c index 6193c33ed4d4..ccb36c7f9b8c 100644 --- a/arch/sparc/prom/init_32.c +++ b/arch/sparc/prom/init_32.c | |||
@@ -75,5 +75,4 @@ void __init prom_init(struct linux_romvec *rp) | |||
75 | romvec->pv_romvers, prom_rev); | 75 | romvec->pv_romvers, prom_rev); |
76 | 76 | ||
77 | /* Initialization successful. */ | 77 | /* Initialization successful. */ |
78 | return; | ||
79 | } | 78 | } |
diff --git a/arch/sparc/prom/palloc.c b/arch/sparc/prom/palloc.c index 20be339cc2ce..2e2a88b211fb 100644 --- a/arch/sparc/prom/palloc.c +++ b/arch/sparc/prom/palloc.c | |||
@@ -40,5 +40,4 @@ prom_free(char *vaddr, unsigned int num_bytes) | |||
40 | { | 40 | { |
41 | if((prom_vers == PROM_V0) || (num_bytes == 0x0)) return; | 41 | if((prom_vers == PROM_V0) || (num_bytes == 0x0)) return; |
42 | (*(romvec->pv_v2devops.v2_dumb_mem_free))(vaddr, num_bytes); | 42 | (*(romvec->pv_v2devops.v2_dumb_mem_free))(vaddr, num_bytes); |
43 | return; | ||
44 | } | 43 | } |
diff --git a/arch/sparc/prom/ranges.c b/arch/sparc/prom/ranges.c index cd5790853ff6..aeff43e44e45 100644 --- a/arch/sparc/prom/ranges.c +++ b/arch/sparc/prom/ranges.c | |||
@@ -87,8 +87,6 @@ void __init prom_ranges_init(void) | |||
87 | 87 | ||
88 | if(num_obio_ranges) | 88 | if(num_obio_ranges) |
89 | prom_printf("PROMLIB: obio_ranges %d\n", num_obio_ranges); | 89 | prom_printf("PROMLIB: obio_ranges %d\n", num_obio_ranges); |
90 | |||
91 | return; | ||
92 | } | 90 | } |
93 | 91 | ||
94 | void | 92 | void |
diff --git a/arch/sparc/prom/segment.c b/arch/sparc/prom/segment.c index 04fd03a7f926..86a663f1d3c5 100644 --- a/arch/sparc/prom/segment.c +++ b/arch/sparc/prom/segment.c | |||
@@ -25,5 +25,4 @@ prom_putsegment(int ctx, unsigned long vaddr, int segment) | |||
25 | (*(romvec->pv_setctxt))(ctx, (char *) vaddr, segment); | 25 | (*(romvec->pv_setctxt))(ctx, (char *) vaddr, segment); |
26 | restore_current(); | 26 | restore_current(); |
27 | spin_unlock_irqrestore(&prom_lock, flags); | 27 | spin_unlock_irqrestore(&prom_lock, flags); |
28 | return; | ||
29 | } | 28 | } |
diff --git a/arch/sparc/prom/tree_32.c b/arch/sparc/prom/tree_32.c index 646d244b1fdb..b21592f8e3fe 100644 --- a/arch/sparc/prom/tree_32.c +++ b/arch/sparc/prom/tree_32.c | |||
@@ -173,7 +173,6 @@ void prom_getstring(int node, char *prop, char *user_buf, int ubuf_size) | |||
173 | len = prom_getproperty(node, prop, user_buf, ubuf_size); | 173 | len = prom_getproperty(node, prop, user_buf, ubuf_size); |
174 | if(len != -1) return; | 174 | if(len != -1) return; |
175 | user_buf[0] = 0; | 175 | user_buf[0] = 0; |
176 | return; | ||
177 | } | 176 | } |
178 | EXPORT_SYMBOL(prom_getstring); | 177 | EXPORT_SYMBOL(prom_getstring); |
179 | 178 | ||
diff --git a/arch/sparc/prom/tree_64.c b/arch/sparc/prom/tree_64.c index 8ea73ddc61dc..3c0d2dd9f693 100644 --- a/arch/sparc/prom/tree_64.c +++ b/arch/sparc/prom/tree_64.c | |||
@@ -154,7 +154,6 @@ void prom_getstring(int node, const char *prop, char *user_buf, int ubuf_size) | |||
154 | len = prom_getproperty(node, prop, user_buf, ubuf_size); | 154 | len = prom_getproperty(node, prop, user_buf, ubuf_size); |
155 | if(len != -1) return; | 155 | if(len != -1) return; |
156 | user_buf[0] = 0; | 156 | user_buf[0] = 0; |
157 | return; | ||
158 | } | 157 | } |
159 | EXPORT_SYMBOL(prom_getstring); | 158 | EXPORT_SYMBOL(prom_getstring); |
160 | 159 | ||