mirror of
				https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git
				synced 2025-10-30 22:47:06 +10:00 
			
		
		
		
	audit_alloc_mark(): don't open-code ERR_CAST()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
		
							parent
							
								
									edbb35cc6b
								
							
						
					
					
						commit
						b1adbdbda4
					
				| @ -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); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user