Skip to content

Commit

Permalink
net: drop unused BUG_TRAP()
Browse files Browse the repository at this point in the history
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Jul 26, 2008
1 parent 547b792 commit ec34c70
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions include/linux/rtnetlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -755,13 +755,6 @@ extern void __rtnl_unlock(void);
} \
} 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)
{
return RTA_GET_U32(rta[RTA_TABLE-1]);
Expand Down

0 comments on commit ec34c70

Please sign in to comment.