Skip to content

Commit

Permalink
remove deprecated and not used: print_mac()
Browse files Browse the repository at this point in the history
The function print_mac in net/ethernet/eth.c is marked __deprecated
and not used. Remove it.

Signed-off-by: Marin Mitov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Marin Mitov authored and davem330 committed Nov 16, 2009
1 parent 2d6682d commit b9f5d52
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
4 changes: 0 additions & 4 deletions include/linux/if_ether.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@ extern struct ctl_table ether_table[];

extern ssize_t sysfs_format_mac(char *buf, const unsigned char *addr, int len);

/*
* Display a 6 byte device address (MAC) in a readable format.
*/
extern char *print_mac(char *buf, const unsigned char *addr) __deprecated;
#define MAC_FMT "%02x:%02x:%02x:%02x:%02x:%02x"
#define MAC_BUF_SIZE 18
#define DECLARE_MAC_BUF(var) char var[MAC_BUF_SIZE]
Expand Down
7 changes: 0 additions & 7 deletions net/ethernet/eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,3 @@ ssize_t sysfs_format_mac(char *buf, const unsigned char *addr, int len)
return ((ssize_t) l);
}
EXPORT_SYMBOL(sysfs_format_mac);

char *print_mac(char *buf, const unsigned char *addr)
{
_format_mac_addr(buf, MAC_BUF_SIZE, addr, ETH_ALEN);
return buf;
}
EXPORT_SYMBOL(print_mac);

0 comments on commit b9f5d52

Please sign in to comment.