Commit b1adbdbd authored by Al Viro's avatar Al Viro

audit_alloc_mark(): don't open-code ERR_CAST()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent edbb35cc
......@@ -84,7 +84,7 @@ struct audit_fsnotify_mark *audit_alloc_mark(struct audit_krule *krule, char *pa
dentry = kern_path_locked(pathname, &path);
if (IS_ERR(dentry))
return (void *)dentry; /* returning an error */
return ERR_CAST(dentry); /* returning an error */
inode = path.dentry->d_inode;
inode_unlock(inode);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment