From af6e81e0cebb7890b2a4adeb71a4a32f5fc23b14 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Wed, 21 Jan 2009 22:25:12 +0100 Subject: [PATCH] udf: Remove NULL dereference. Even if the conditional wasn't wrong, it would be pointless, because udfmp->hashtbl is already initialized by phashinit() in udf_mountfs(). Found-by: LLVM/Clang Static Analyzer --- sys/vfs/udf/udf_vnops.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/vfs/udf/udf_vnops.c b/sys/vfs/udf/udf_vnops.c index 8b92396a15..dc9e49cdbf 100644 --- a/sys/vfs/udf/udf_vnops.c +++ b/sys/vfs/udf/udf_vnops.c @@ -143,8 +143,6 @@ udf_hashins(struct udf_node *node) lwkt_gettoken(&hashlock, &udfmp->hash_token); lh = &udfmp->hashtbl[node->hash_id % udfmp->hashsz]; - if (lh == NULL) - LIST_INIT(lh); LIST_INSERT_HEAD(lh, node, le); lwkt_reltoken(&hashlock); -- 2.41.0