diff options
author | Tejun Heo <htejun@gmail.com> | 2006-02-11 05:11:13 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-02-11 17:51:57 -0500 |
commit | bef4a456b8dc8b3638f4d49a25a89e1467da9483 (patch) | |
tree | c8c9a6ca26f2e6cf75db0623fb1f395330fbe6ca /include/linux/libata.h | |
parent | beec7dbc6ff003bbc94de62b3323519c878fb2ac (diff) |
[PATCH] libata: kill assert() macro
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>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r-- | include/linux/libata.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 695d9ae6ec03..83a1f2ead861 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -62,16 +62,6 @@ | |||
62 | 62 | ||
63 | #define BPRINTK(fmt, args...) if (ap->flags & ATA_FLAG_DEBUGMSG) printk(KERN_ERR "%s: " fmt, __FUNCTION__, ## args) | 63 | #define BPRINTK(fmt, args...) if (ap->flags & ATA_FLAG_DEBUGMSG) printk(KERN_ERR "%s: " fmt, __FUNCTION__, ## args) |
64 | 64 | ||
65 | #ifdef ATA_NDEBUG | ||
66 | #define assert(expr) | ||
67 | #else | ||
68 | #define assert(expr) \ | ||
69 | if(unlikely(!(expr))) { \ | ||
70 | printk(KERN_ERR "Assertion failed! %s,%s,%s,line=%d\n", \ | ||
71 | #expr,__FILE__,__FUNCTION__,__LINE__); \ | ||
72 | } | ||
73 | #endif | ||
74 | |||
75 | /* NEW: debug levels */ | 65 | /* NEW: debug levels */ |
76 | #define HAVE_LIBATA_MSG 1 | 66 | #define HAVE_LIBATA_MSG 1 |
77 | 67 | ||