Bluetooth: Convert bt_<level> logging functions to return void
authorJoe Perches <joe@perches.com>
Mon, 22 Sep 2014 18:17:41 +0000 (11:17 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 24 Sep 2014 07:40:08 +0000 (09:40 +0200)
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>
include/net/bluetooth/bluetooth.h
net/bluetooth/lib.c

index 7e666d06b97ff3a4c311f8f69dbb60b95bacd2ec..58695ffeb13814786227f7b04d3a4930a8d98bdd 100644 (file)
@@ -120,9 +120,9 @@ struct bt_voice {
 #define BT_RCVMTU              13
 
 __printf(1, 2)
-int bt_info(const char *fmt, ...);
+void bt_info(const char *fmt, ...);
 __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_ERR(fmt, ...)       bt_err(fmt "\n", ##__VA_ARGS__)
index 941ad7530eda48f21dcf7faef9167cbce6574a8e..b36bc041585425beed292ef9d499b4dc8e11397c 100644 (file)
@@ -135,40 +135,34 @@ int bt_to_errno(__u16 code)
 }
 EXPORT_SYMBOL(bt_to_errno);
 
-int bt_info(const char *format, ...)
+void bt_info(const char *format, ...)
 {
        struct va_format vaf;
        va_list args;
-       int r;
 
        va_start(args, format);
 
        vaf.fmt = format;
        vaf.va = &args;
 
-       r = pr_info("%pV", &vaf);
+       pr_info("%pV", &vaf);
 
        va_end(args);
-
-       return r;
 }
 EXPORT_SYMBOL(bt_info);
 
-int bt_err(const char *format, ...)
+void bt_err(const char *format, ...)
 {
        struct va_format vaf;
        va_list args;
-       int r;
 
        va_start(args, format);
 
        vaf.fmt = format;
        vaf.va = &args;
 
-       r = pr_err("%pV", &vaf);
+       pr_err("%pV", &vaf);
 
        va_end(args);
-
-       return r;
 }
 EXPORT_SYMBOL(bt_err);
This page took 0.040388 seconds and 5 git commands to generate.