Commit d945df256a7b2446227fafae2f89db85597412ef
Committed by
Gustavo Padovan
1 parent
7028a8860f
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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
net/bluetooth/lib.c
... | ... | @@ -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 | { |