mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	Bluetooth: Convert bt_<level> logging functions to return void
No caller or macro uses the return value so make all the functions return void. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
		
							parent
							
								
									48e68ff5e5
								
							
						
					
					
						commit
						2b0bf6c85a
					
				
					 2 changed files with 6 additions and 12 deletions
				
			
		| 
						 | 
					@ -120,9 +120,9 @@ struct bt_voice {
 | 
				
			||||||
#define BT_RCVMTU		13
 | 
					#define BT_RCVMTU		13
 | 
				
			||||||
 | 
					
 | 
				
			||||||
__printf(1, 2)
 | 
					__printf(1, 2)
 | 
				
			||||||
int bt_info(const char *fmt, ...);
 | 
					void bt_info(const char *fmt, ...);
 | 
				
			||||||
__printf(1, 2)
 | 
					__printf(1, 2)
 | 
				
			||||||
int bt_err(const char *fmt, ...);
 | 
					void bt_err(const char *fmt, ...);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define BT_INFO(fmt, ...)	bt_info(fmt "\n", ##__VA_ARGS__)
 | 
					#define BT_INFO(fmt, ...)	bt_info(fmt "\n", ##__VA_ARGS__)
 | 
				
			||||||
#define BT_ERR(fmt, ...)	bt_err(fmt "\n", ##__VA_ARGS__)
 | 
					#define BT_ERR(fmt, ...)	bt_err(fmt "\n", ##__VA_ARGS__)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -135,40 +135,34 @@ int bt_to_errno(__u16 code)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
EXPORT_SYMBOL(bt_to_errno);
 | 
					EXPORT_SYMBOL(bt_to_errno);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int bt_info(const char *format, ...)
 | 
					void bt_info(const char *format, ...)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct va_format vaf;
 | 
						struct va_format vaf;
 | 
				
			||||||
	va_list args;
 | 
						va_list args;
 | 
				
			||||||
	int r;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	va_start(args, format);
 | 
						va_start(args, format);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	vaf.fmt = format;
 | 
						vaf.fmt = format;
 | 
				
			||||||
	vaf.va = &args;
 | 
						vaf.va = &args;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	r = pr_info("%pV", &vaf);
 | 
						pr_info("%pV", &vaf);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	va_end(args);
 | 
						va_end(args);
 | 
				
			||||||
 | 
					 | 
				
			||||||
	return r;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
EXPORT_SYMBOL(bt_info);
 | 
					EXPORT_SYMBOL(bt_info);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int bt_err(const char *format, ...)
 | 
					void bt_err(const char *format, ...)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct va_format vaf;
 | 
						struct va_format vaf;
 | 
				
			||||||
	va_list args;
 | 
						va_list args;
 | 
				
			||||||
	int r;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	va_start(args, format);
 | 
						va_start(args, format);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	vaf.fmt = format;
 | 
						vaf.fmt = format;
 | 
				
			||||||
	vaf.va = &args;
 | 
						vaf.va = &args;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	r = pr_err("%pV", &vaf);
 | 
						pr_err("%pV", &vaf);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	va_end(args);
 | 
						va_end(args);
 | 
				
			||||||
 | 
					 | 
				
			||||||
	return r;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
EXPORT_SYMBOL(bt_err);
 | 
					EXPORT_SYMBOL(bt_err);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue