summaryrefslogtreecommitdiffstats
path: root/kernel/audit_fsnotify.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2021-01-30 03:36:33 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2021-02-23 16:25:27 +0100
commitb1adbdbda458b2ec69bf5915c4dcdbe2bd5e7bad (patch)
tree6dd6195787ced76e1facd770511d8843a1338c36 /kernel/audit_fsnotify.c
parentfs/inode.c: make inode_init_always() initialize i_ino to 0 (diff)
downloadlinux-b1adbdbda458b2ec69bf5915c4dcdbe2bd5e7bad.tar.xz
linux-b1adbdbda458b2ec69bf5915c4dcdbe2bd5e7bad.zip
audit_alloc_mark(): don't open-code ERR_CAST()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/audit_fsnotify.c')
-rw-r--r--kernel/audit_fsnotify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit_fsnotify.c b/kernel/audit_fsnotify.c
index 5b3f01da172b..60739d5e3373 100644
--- a/kernel/audit_fsnotify.c
+++ b/kernel/audit_fsnotify.c
@@ -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);