Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bef4a456 authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik
Browse files

[PATCH] libata: kill assert() macro



libata assert() now has no user left.  Kill it.

Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent beec7dbc
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -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