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