浏览代码

net: drop unused BUG_TRAP()

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Ilpo Järvinen 17 年之前
父节点
当前提交
ec34c702ca
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. 0 7
      include/linux/rtnetlink.h

+ 0 - 7
include/linux/rtnetlink.h

@@ -755,13 +755,6 @@ extern void __rtnl_unlock(void);
 	} \
 	} \
 } while(0)
 } while(0)
 
 
-#define BUG_TRAP(x) do { \
-	if (unlikely(!(x))) { \
-		printk(KERN_ERR "KERNEL: assertion (%s) failed at %s (%d)\n", \
-			#x,  __FILE__ , __LINE__); \
-	} \
-} while(0)
-
 static inline u32 rtm_get_table(struct rtattr **rta, u8 table)
 static inline u32 rtm_get_table(struct rtattr **rta, u8 table)
 {
 {
 	return RTA_GET_U32(rta[RTA_TABLE-1]);
 	return RTA_GET_U32(rta[RTA_TABLE-1]);