diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-12-01 06:01:06 -0500 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-03 14:22:22 -0500 |
commit | 6e14a61d412eb87ef7bdcec8b08a95bead771a78 (patch) | |
tree | 485dff0b5de49c083b1d04c81881c99a45a71063 /drivers/mtd/ofpart.c | |
parent | cf3b2b1e24998ba67ca6defa71899bee2432046f (diff) |
mtd: make register_mtd_parser return void
register_mtd_parser never fails; hence make it return void.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/ofpart.c')
-rw-r--r-- | drivers/mtd/ofpart.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/mtd/ofpart.c b/drivers/mtd/ofpart.c index f0a708bf9b0e..aa26c32e1bc2 100644 --- a/drivers/mtd/ofpart.c +++ b/drivers/mtd/ofpart.c | |||
@@ -173,18 +173,9 @@ static struct mtd_part_parser ofoldpart_parser = { | |||
173 | 173 | ||
174 | static int __init ofpart_parser_init(void) | 174 | static int __init ofpart_parser_init(void) |
175 | { | 175 | { |
176 | int rc; | 176 | register_mtd_parser(&ofpart_parser); |
177 | rc = register_mtd_parser(&ofpart_parser); | 177 | register_mtd_parser(&ofoldpart_parser); |
178 | if (rc) | 178 | return 0; |
179 | goto out; | ||
180 | |||
181 | rc = register_mtd_parser(&ofoldpart_parser); | ||
182 | if (!rc) | ||
183 | return 0; | ||
184 | |||
185 | deregister_mtd_parser(&ofoldpart_parser); | ||
186 | out: | ||
187 | return rc; | ||
188 | } | 179 | } |
189 | 180 | ||
190 | static void __exit ofpart_parser_exit(void) | 181 | static void __exit ofpart_parser_exit(void) |