summaryrefslogtreecommitdiff
path: root/kerncompat.h
diff options
context:
space:
mode:
Diffstat (limited to 'kerncompat.h')
-rw-r--r--kerncompat.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/kerncompat.h b/kerncompat.h
index 5a543c22..1493cad8 100644
--- a/kerncompat.h
+++ b/kerncompat.h
@@ -93,14 +93,9 @@ static inline void warning_trace(const char *assertion, const char *filename,
{
if (!val)
return;
- if (assertion)
- fprintf(stderr,
- "%s:%d: %s: Warning: assertion `%s` failed, value %ld\n",
- filename, line, func, assertion, val);
- else
- fprintf(stderr,
- "%s:%d: %s: Warning: assertion failed, value %ld.\n",
- filename, line, func, val);
+ fprintf(stderr,
+ "%s:%d: %s: Warning: assertion `%s` failed, value %ld\n",
+ filename, line, func, assertion, val);
#ifndef BTRFS_DISABLE_BACKTRACE
print_trace();
#endif