From: Konstantin Khlebnikov Date: Sun, 17 Jul 2011 11:35:12 +0000 (+0400) Subject: vfs: use ERR_CAST for err-ptr tossing in lookup_instantiate_filp X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5a9a43646cf709312d71eca71cef90ad802f28f9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Al Viro --- diff --git a/fs/open.c b/fs/open.c index b52cf013ffa1..739b751aa73e 100644 --- a/fs/open.c +++ b/fs/open.c @@ -793,7 +793,7 @@ out: return nd->intent.open.file; out_err: release_open_intent(nd); - nd->intent.open.file = (struct file *)dentry; + nd->intent.open.file = ERR_CAST(dentry); goto out; } EXPORT_SYMBOL_GPL(lookup_instantiate_filp);