summaryrefslogtreecommitdiff
path: root/drivers/dahdi/dahdi_echocan_sec2.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2012-02-09 15:25:03 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2012-02-09 15:25:03 +0000
commit52e3732076ffbd5ab2186148bea303bbd01c6fc6 (patch)
tree330c71606fdb47bd13316dadef6f03370721563d /drivers/dahdi/dahdi_echocan_sec2.c
parent4c05c1b997ebd8812f753e15ec29b587ee9eec5b (diff)
code cleanup: remove unused debug_printk()
The dahdi_echocan_* modules had an unused debug_printk() macro. Remove them because: * They were unused * There were multiple definitions * They were unsafe. Someone doing an if(foo) debug_printk(...); else do_something(); may be surprised ;-) * They used 'debug' as a debug level, while the rest of DAHDI debug macros treat it as a bit-field. Leave only a single definition in wcte12xp/base.c which is safe. Signed-off-by: Oron Peled <oron.peled@xorcom.com> Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10459 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi_echocan_sec2.c')
-rw-r--r--drivers/dahdi/dahdi_echocan_sec2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dahdi/dahdi_echocan_sec2.c b/drivers/dahdi/dahdi_echocan_sec2.c
index 8750c85..da5a286 100644
--- a/drivers/dahdi/dahdi_echocan_sec2.c
+++ b/drivers/dahdi/dahdi_echocan_sec2.c
@@ -47,8 +47,6 @@
static int debug;
-#define debug_printk(level, fmt, args...) if (debug >= level) printk(KERN_DEBUG "%s (%s): " fmt, THIS_MODULE->name, __FUNCTION__, ## args)
-
#include "fir.h"
#ifndef NULL