summaryrefslogtreecommitdiffstats
path: root/drivers/net/tun.c
diff options
context:
space:
mode:
authorMichal Kubecek <mkubecek@suse.cz>2020-03-04 17:24:20 +0100
committerDavid S. Miller <davem@davemloft.net>2020-03-05 21:38:03 -0800
commit5af09071348160e1f938df13b1f75d1e1739d366 (patch)
treec00a3f377be07758e4dcccafd987a3d8022acbb1 /drivers/net/tun.c
parent3424170f37e78c9061e033ecebf42292b3939bbd (diff)
downloadlinux-5af09071348160e1f938df13b1f75d1e1739d366.tar.gz
linux-5af09071348160e1f938df13b1f75d1e1739d366.tar.bz2
linux-5af09071348160e1f938df13b1f75d1e1739d366.zip
tun: drop TUN_DEBUG and tun_debug()
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>
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r--drivers/net/tun.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 42110aba0014..4689e4c62e21 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -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 */