summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-11-03 19:57:40 +0000
committerjhb <jhb@FreeBSD.org>2008-11-03 19:57:40 +0000
commit6cfec3e1612f60d19983a6ab0defbecbfd07a12d (patch)
tree845026661c1fc30061cf109a490ded5e2f8a94a3
parent24139401dda9b044e2a3056573425cbc60ffcc20 (diff)
downloadFreeBSD-src-6cfec3e1612f60d19983a6ab0defbecbfd07a12d.zip
FreeBSD-src-6cfec3e1612f60d19983a6ab0defbecbfd07a12d.tar.gz
Remove some unused and broken code that attempted to not invoke locking
asserts on NULL vnode pointers. All the vnode assertion routines already check for NULL vnode pointers.
-rw-r--r--sys/tools/vnode_if.awk6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/tools/vnode_if.awk b/sys/tools/vnode_if.awk
index fa168cb..b250c92 100644
--- a/sys/tools/vnode_if.awk
+++ b/sys/tools/vnode_if.awk
@@ -71,9 +71,6 @@ function add_debug_code(name, arg, pos, ind)
else
star = "";
if (lockdata[name, arg, pos] && (lockdata[name, arg, pos] != "-")) {
- if (arg ~ /^\*/) {
- printc(ind"if ("substr(arg, 2)" != NULL) {");
- }
printc(ind"ASSERT_VI_UNLOCKED("star"a->a_"arg", \""uname"\");");
# Add assertions for locking
if (lockdata[name, arg, pos] == "L")
@@ -85,9 +82,6 @@ function add_debug_code(name, arg, pos, ind)
else if (0) {
# XXX More checks!
}
- if (arg ~ /^\*/) {
- printc("ind}");
- }
}
}
OpenPOWER on IntegriCloud