diff options
author | Alexey Dobriyan <adobriyan@sw.ru> | 2007-10-17 06:26:04 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 15:42:46 (GMT) |
commit | f6b450d489f2fb4e909447beacad64edb8aa0cda (patch) | |
tree | 85240acdf3d5c1cb2f193a72c99e24789acc0a0e /fs/exec.c | |
parent | e4dc1b14d8dc57c3975bf69740e4f5cda6bfba09 (diff) | |
download | linux-f6b450d489f2fb4e909447beacad64edb8aa0cda.tar.xz |
Make unregister_binfmt() return void
list_del() hardly can fail, so checking for return value is pointless
(and current code always return 0).
Nobody really cared that return value anyway.
Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -81,12 +81,11 @@ int register_binfmt(struct linux_binfmt * fmt) EXPORT_SYMBOL(register_binfmt); -int unregister_binfmt(struct linux_binfmt * fmt) +void unregister_binfmt(struct linux_binfmt * fmt) { write_lock(&binfmt_lock); list_del(&fmt->lh); write_unlock(&binfmt_lock); - return 0; } EXPORT_SYMBOL(unregister_binfmt); |