diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-17 03:05:16 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-20 21:29:46 -0400 |
commit | 8fc3dc5a3a17aa2b353886422bd89420619af211 (patch) | |
tree | 74a3290ad9621ff1c225b772df2c529c8feb5f43 /fs/exec.c | |
parent | 54bf586e1f51018ba7624c851e7aa14cee0548d2 (diff) |
__register_binfmt() made void
Just don't pass NULL to it - nobody does, anyway.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -79,15 +79,13 @@ static atomic_t call_count = ATOMIC_INIT(1); | |||
79 | static LIST_HEAD(formats); | 79 | static LIST_HEAD(formats); |
80 | static DEFINE_RWLOCK(binfmt_lock); | 80 | static DEFINE_RWLOCK(binfmt_lock); |
81 | 81 | ||
82 | int __register_binfmt(struct linux_binfmt * fmt, int insert) | 82 | void __register_binfmt(struct linux_binfmt * fmt, int insert) |
83 | { | 83 | { |
84 | if (!fmt) | 84 | BUG_ON(!fmt); |
85 | return -EINVAL; | ||
86 | write_lock(&binfmt_lock); | 85 | write_lock(&binfmt_lock); |
87 | insert ? list_add(&fmt->lh, &formats) : | 86 | insert ? list_add(&fmt->lh, &formats) : |
88 | list_add_tail(&fmt->lh, &formats); | 87 | list_add_tail(&fmt->lh, &formats); |
89 | write_unlock(&binfmt_lock); | 88 | write_unlock(&binfmt_lock); |
90 | return 0; | ||
91 | } | 89 | } |
92 | 90 | ||
93 | EXPORT_SYMBOL(__register_binfmt); | 91 | EXPORT_SYMBOL(__register_binfmt); |