aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@sw.ru>2007-10-17 02:26:04 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 11:42:46 -0400
commitf6b450d489f2fb4e909447beacad64edb8aa0cda (patch)
tree85240acdf3d5c1cb2f193a72c99e24789acc0a0e /fs
parente4dc1b14d8dc57c3975bf69740e4f5cda6bfba09 (diff)
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')
-rw-r--r--fs/exec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 65825bdc4475..550ae9b22f8d 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -81,12 +81,11 @@ int register_binfmt(struct linux_binfmt * fmt)
81 81
82EXPORT_SYMBOL(register_binfmt); 82EXPORT_SYMBOL(register_binfmt);
83 83
84int unregister_binfmt(struct linux_binfmt * fmt) 84void unregister_binfmt(struct linux_binfmt * fmt)
85{ 85{
86 write_lock(&binfmt_lock); 86 write_lock(&binfmt_lock);
87 list_del(&fmt->lh); 87 list_del(&fmt->lh);
88 write_unlock(&binfmt_lock); 88 write_unlock(&binfmt_lock);
89 return 0;
90} 89}
91 90
92EXPORT_SYMBOL(unregister_binfmt); 91EXPORT_SYMBOL(unregister_binfmt);