Commit 1a84fec1 authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman

staging: unisys: remove ASSERT() macro

Remove the ASSERT macro from timskmod.h, and replace its single use with
WARN_ON() instead.
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2098dbd1
...@@ -68,15 +68,6 @@ ...@@ -68,15 +68,6 @@
#define HOSTADDRESS unsigned long long #define HOSTADDRESS unsigned long long
#endif #endif
/** Try to evaulate the provided expression, and do a RETINT(x) iff
* the expression evaluates to < 0.
*/
#define ASSERT(cond) \
do { if (!(cond)) \
HUHDRV("ASSERT failed - %s", \
__stringify(cond)); \
} while (0)
#define sizeofmember(TYPE, MEMBER) (sizeof(((TYPE *)0)->MEMBER)) #define sizeofmember(TYPE, MEMBER) (sizeof(((TYPE *)0)->MEMBER))
/** "Covered quotient" function */ /** "Covered quotient" function */
#define COVQ(v, d) (((v) + (d) - 1) / (d)) #define COVQ(v, d) (((v) + (d) - 1) / (d))
......
...@@ -182,7 +182,7 @@ BOOL visor_periodic_work_stop(struct periodic_work *pw) ...@@ -182,7 +182,7 @@ BOOL visor_periodic_work_stop(struct periodic_work *pw)
/* We get here if the delayed work was pending as /* We get here if the delayed work was pending as
* delayed work, but was NOT run. * delayed work, but was NOT run.
*/ */
ASSERT(pw->is_scheduled); WARN_ON(!pw->is_scheduled);
pw->is_scheduled = FALSE; pw->is_scheduled = FALSE;
} else { } else {
/* If we get here, either the delayed work: /* If we get here, either the delayed work:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment