tools headers UAPI: Sync openat2.h with the kernel sources
[linux-2.6-microblaze.git] / kernel / audit_fsnotify.c
index 5b3f01d..60739d5 100644 (file)
@@ -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);