Skip to content

Commit

Permalink
bluetooth: Remove unneeded batostr function
Browse files Browse the repository at this point in the history
batostr is not needed anymore since for printing Bluetooth
addresses we use %pMR specifier.

Signed-off-by: Andrei Emeltchenko <[email protected]>
Acked-by: Marcel Holtmann <[email protected]>
Signed-off-by: Gustavo Padovan <[email protected]>
  • Loading branch information
finikorg authored and Gustavo Padovan committed Sep 27, 2012
1 parent 7028a88 commit d945df2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion include/net/bluetooth/bluetooth.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ static inline void bacpy(bdaddr_t *dst, bdaddr_t *src)
}

void baswap(bdaddr_t *dst, bdaddr_t *src);
char *batostr(bdaddr_t *ba);

/* Common socket structures and functions */

Expand Down
14 changes: 0 additions & 14 deletions net/bluetooth/lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,6 @@ void baswap(bdaddr_t *dst, bdaddr_t *src)
}
EXPORT_SYMBOL(baswap);

char *batostr(bdaddr_t *ba)
{
static char str[2][18];
static int i = 1;

i ^= 1;
sprintf(str[i], "%2.2X:%2.2X:%2.2X:%2.2X:%2.2X:%2.2X",
ba->b[5], ba->b[4], ba->b[3],
ba->b[2], ba->b[1], ba->b[0]);

return str[i];
}
EXPORT_SYMBOL(batostr);

/* Bluetooth error codes to Unix errno mapping */
int bt_to_errno(__u16 code)
{
Expand Down

0 comments on commit d945df2

Please sign in to comment.