]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] libata: kill assert() macro
authorTejun Heo <htejun@gmail.com>
Sat, 11 Feb 2006 10:11:13 +0000 (19:11 +0900)
committerJeff Garzik <jgarzik@pobox.com>
Sat, 11 Feb 2006 22:51:57 +0000 (17:51 -0500)
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>
include/linux/libata.h

index 695d9ae6ec03ae1d5ffdc5d375bd592f0d6351b6..83a1f2ead86128701edc543f9c7204c2504f05e6 100644 (file)
 
 #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