History

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

Al Viro committed 5 years ago

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

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
8484
8585 dentry = kern_path_locked(pathname, &path);
8686 if (IS_ERR(dentry))
87− return (void *)dentry; /* returning an error */
87+ return ERR_CAST(dentry); /* returning an error */
8888 inode = path.dentry->d_inode;
8989 inode_unlock(inode);
9090

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