Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Joe Perches and committed by
Marcel Holtmann
2b0bf6c8 48e68ff5

+6 -12
+2 -2
include/net/bluetooth/bluetooth.h
··· 120 120 #define BT_RCVMTU 13 121 121 122 122 __printf(1, 2) 123 - int bt_info(const char *fmt, ...); 123 + void bt_info(const char *fmt, ...); 124 124 __printf(1, 2) 125 - int bt_err(const char *fmt, ...); 125 + void bt_err(const char *fmt, ...); 126 126 127 127 #define BT_INFO(fmt, ...) bt_info(fmt "\n", ##__VA_ARGS__) 128 128 #define BT_ERR(fmt, ...) bt_err(fmt "\n", ##__VA_ARGS__)
+4 -10
net/bluetooth/lib.c
··· 135 135 } 136 136 EXPORT_SYMBOL(bt_to_errno); 137 137 138 - int bt_info(const char *format, ...) 138 + void bt_info(const char *format, ...) 139 139 { 140 140 struct va_format vaf; 141 141 va_list args; 142 - int r; 143 142 144 143 va_start(args, format); 145 144 146 145 vaf.fmt = format; 147 146 vaf.va = &args; 148 147 149 - r = pr_info("%pV", &vaf); 148 + pr_info("%pV", &vaf); 150 149 151 150 va_end(args); 152 - 153 - return r; 154 151 } 155 152 EXPORT_SYMBOL(bt_info); 156 153 157 - int bt_err(const char *format, ...) 154 + void bt_err(const char *format, ...) 158 155 { 159 156 struct va_format vaf; 160 157 va_list args; 161 - int r; 162 158 163 159 va_start(args, format); 164 160 165 161 vaf.fmt = format; 166 162 vaf.va = &args; 167 163 168 - r = pr_err("%pV", &vaf); 164 + pr_err("%pV", &vaf); 169 165 170 166 va_end(args); 171 - 172 - return r; 173 167 } 174 168 EXPORT_SYMBOL(bt_err);