Skip to content

Commit

Permalink
tun: drop TUN_DEBUG and tun_debug()
Browse files Browse the repository at this point in the history
TUN_DEBUG and tun_debug() are no longer used anywhere, drop them.

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Michal Kubecek authored and David S. Miller committed Mar 6, 2020
1 parent 3424170 commit 5af0907
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,6 @@
static void tun_default_link_ksettings(struct net_device *dev,
struct ethtool_link_ksettings *cmd);

/* Uncomment to enable debugging */
/* #define TUN_DEBUG 1 */

#ifdef TUN_DEBUG
#define tun_debug(level, tun, fmt, args...) \
do { \
if (tun->msg_enable) \
netdev_printk(level, tun->dev, fmt, ##args); \
} while (0)
#else
#define tun_debug(level, tun, fmt, args...) \
do { \
if (0) \
netdev_printk(level, tun->dev, fmt, ##args); \
} while (0)
#endif

#define TUN_RX_PAD (NET_IP_ALIGN + NET_SKB_PAD)

/* TUN device flags */
Expand Down

0 comments on commit 5af0907

Please sign in to comment.