Skip to content

Commit

Permalink
[PATCH] libata: kill assert() macro
Browse files Browse the repository at this point in the history
libata assert() now has no user left.  Kill it.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Feb 11, 2006
1 parent beec7db commit bef4a45
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions include/linux/libata.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,6 @@

#define BPRINTK(fmt, args...) if (ap->flags & ATA_FLAG_DEBUGMSG) printk(KERN_ERR "%s: " fmt, __FUNCTION__, ## args)

#ifdef ATA_NDEBUG
#define assert(expr)
#else
#define assert(expr) \
if(unlikely(!(expr))) { \
printk(KERN_ERR "Assertion failed! %s,%s,%s,line=%d\n", \
#expr,__FILE__,__FUNCTION__,__LINE__); \
}
#endif

/* NEW: debug levels */
#define HAVE_LIBATA_MSG 1

Expand Down

0 comments on commit bef4a45

Please sign in to comment.