Module Name: src
Committed By: rillig
Date: Sun Oct 4 17:21:28 UTC 2020
Modified Files:
src/usr.bin/make: hash.c
Log Message:
make(1): remove dead code from Hash_FindEntry
All callers pass a properly initialized table.
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/usr.bin/make/hash.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/hash.c
diff -u src/usr.bin/make/hash.c:1.38 src/usr.bin/make/hash.c:1.39
--- src/usr.bin/make/hash.c:1.38 Sat Oct 3 23:16:28 2020
+++ src/usr.bin/make/hash.c Sun Oct 4 17:21:28 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: hash.c,v 1.38 2020/10/03 23:16:28 rillig Exp $ */
+/* $NetBSD: hash.c,v 1.39 2020/10/04 17:21:28 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -79,7 +79,7 @@
#include "make.h"
/* "@(#)hash.c 8.1 (Berkeley) 6/6/93" */
-MAKE_RCSID("$NetBSD: hash.c,v 1.38 2020/10/03 23:16:28 rillig Exp $");
+MAKE_RCSID("$NetBSD: hash.c,v 1.39 2020/10/04 17:21:28 rillig Exp $");
/*
* Forward references to local procedures that are used before they're
@@ -164,9 +164,6 @@ Hash_FindEntry(Hash_Table *t, const char
unsigned h;
int chainlen;
- if (t == NULL || t->buckets == NULL)
- return NULL;
-
h = hash(key, NULL);
chainlen = 0;
#ifdef DEBUG_HASH_LOOKUP