diff options
author | Konstantin Khlebnikov <khlebnikov@openvz.org> | 2011-07-17 07:35:12 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-22 19:42:13 -0400 |
commit | 5a9a43646cf709312d71eca71cef90ad802f28f9 (patch) | |
tree | 9083e5e4e5bb2e8ad3f3f039503e37629acb5ddc /fs/open.c | |
parent | d769b3c2ab7184ddd42056595b627cc871caa90e (diff) |
vfs: use ERR_CAST for err-ptr tossing in lookup_instantiate_filp
Replace unclear (struct dentry *) to (struct file *) typecast with ERR_CAST() macro.
Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -793,7 +793,7 @@ out: | |||
793 | return nd->intent.open.file; | 793 | return nd->intent.open.file; |
794 | out_err: | 794 | out_err: |
795 | release_open_intent(nd); | 795 | release_open_intent(nd); |
796 | nd->intent.open.file = (struct file *)dentry; | 796 | nd->intent.open.file = ERR_CAST(dentry); |
797 | goto out; | 797 | goto out; |
798 | } | 798 | } |
799 | EXPORT_SYMBOL_GPL(lookup_instantiate_filp); | 799 | EXPORT_SYMBOL_GPL(lookup_instantiate_filp); |