mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	treewide: fix errno assignments
Do not set `errno` to a negative value.
This commit is contained in:
		
							parent
							
								
									1b115eaf31
								
							
						
					
					
						commit
						f524271b81
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -211,7 +211,7 @@ struct spa_bt_quirks *spa_bt_quirks_create(const struct spa_dict *info, struct s
 | 
				
			||||||
	const char *str;
 | 
						const char *str;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!info) {
 | 
						if (!info) {
 | 
				
			||||||
		errno = -EINVAL;
 | 
							errno = EINVAL;
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -382,7 +382,7 @@ struct pw_memmap * pw_memblock_map(struct pw_memblock *block,
 | 
				
			||||||
		(int64_t) sb.st_size);
 | 
							(int64_t) sb.st_size);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!valid) {
 | 
						if (!valid) {
 | 
				
			||||||
		errno = -EINVAL;
 | 
							errno = EINVAL;
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue