mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:32:46 +00:00 
			
		
		
		
	Kernel: Remove unused credentials() call in validate_inode_mmap_prot
For some reason GCC did not complain about this.
This commit is contained in:
		
							parent
							
								
									0b14081ae1
								
							
						
					
					
						commit
						dcdcab0099
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		|  | @ -110,7 +110,6 @@ ErrorOr<void> Process::validate_mmap_prot(int prot, bool map_stack, bool map_ano | |||
| 
 | ||||
| ErrorOr<void> Process::validate_inode_mmap_prot(int prot, bool readable_description, bool description_writable, bool map_shared) const | ||||
| { | ||||
|     auto credentials = this->credentials(); | ||||
|     if ((prot & PROT_READ) && !readable_description) | ||||
|         return EACCES; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Idan Horowitz
						Idan Horowitz