mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	[PATCH] Change dash2underscore() return value to char
Since dash2underscore() just operates and returns chars, I guess its safe to change the return value to a char. With my .config, this reduces its size by 5 bytes. text data bss dec hex filename 4155 152 0 4307 10d3 params.o.orig 4150 152 0 4302 10ce params.o Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
		
							parent
							
								
									7b7a317cf8
								
							
						
					
					
						commit
						b9e20a9200
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -31,7 +31,7 @@
 | 
				
			||||||
#define DEBUGP(fmt, a...)
 | 
					#define DEBUGP(fmt, a...)
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static inline int dash2underscore(char c)
 | 
					static inline char dash2underscore(char c)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	if (c == '-')
 | 
						if (c == '-')
 | 
				
			||||||
		return '_';
 | 
							return '_';
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue