Commit d945df256a7b2446227fafae2f89db85597412ef

Authored by Andrei Emeltchenko
Committed by Gustavo Padovan
1 parent 7028a8860f

bluetooth: Remove unneeded batostr function

batostr is not needed anymore since for printing Bluetooth
addresses we use %pMR specifier.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>

Showing 2 changed files with 0 additions and 15 deletions Side-by-side Diff

include/net/bluetooth/bluetooth.h
... ... @@ -180,7 +180,6 @@
180 180 }
181 181  
182 182 void baswap(bdaddr_t *dst, bdaddr_t *src);
183   -char *batostr(bdaddr_t *ba);
184 183  
185 184 /* Common socket structures and functions */
186 185  
... ... @@ -41,20 +41,6 @@
41 41 }
42 42 EXPORT_SYMBOL(baswap);
43 43  
44   -char *batostr(bdaddr_t *ba)
45   -{
46   - static char str[2][18];
47   - static int i = 1;
48   -
49   - i ^= 1;
50   - sprintf(str[i], "%2.2X:%2.2X:%2.2X:%2.2X:%2.2X:%2.2X",
51   - ba->b[5], ba->b[4], ba->b[3],
52   - ba->b[2], ba->b[1], ba->b[0]);
53   -
54   - return str[i];
55   -}
56   -EXPORT_SYMBOL(batostr);
57   -
58 44 /* Bluetooth error codes to Unix errno mapping */
59 45 int bt_to_errno(__u16 code)
60 46 {