History

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

Al Viro committed 5 years ago

Commit b1adbdb1 parent edbb35c1 file · +1 −1Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/audit_fsnotify.c+1−1
@@ -84,7 +84,7 @@ struct audit_fsnotify_mark *audit_alloc_mark(struct audit_krule *krule, char *pa · 83 unmodified lines
84 84
85 dentry = kern_path_locked(pathname, &path);85 dentry = kern_path_locked(pathname, &path);
86 if (IS_ERR(dentry))86 if (IS_ERR(dentry))
87 return (void *)dentry; /* returning an error */87 return ERR_CAST(dentry); /* returning an error */
88 inode = path.dentry->d_inode;88 inode = path.dentry->d_inode;
89 inode_unlock(inode);89 inode_unlock(inode);
90 90

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t