From 6cfec3e1612f60d19983a6ab0defbecbfd07a12d Mon Sep 17 00:00:00 2001 From: jhb Date: Mon, 3 Nov 2008 19:57:40 +0000 Subject: [PATCH] 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. --- sys/tools/vnode_if.awk | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sys/tools/vnode_if.awk b/sys/tools/vnode_if.awk index fa168cb54a88..b250c92bed60 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}"); - } } }