Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make make(1): remove dead code from Hash_FindEntry
details: https://anonhg.NetBSD.org/src/rev/b55ba1df5228
branches: trunk
changeset: 944601:b55ba1df5228
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Oct 04 17:21:28 2020 +0000
description:
make(1): remove dead code from Hash_FindEntry
All callers pass a properly initialized table.
diffstat:
usr.bin/make/hash.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (28 lines):
diff -r 2abfedbc0e9c -r b55ba1df5228 usr.bin/make/hash.c
--- a/usr.bin/make/hash.c Sun Oct 04 16:50:37 2020 +0000
+++ b/usr.bin/make/hash.c Sun Oct 04 17:21:28 2020 +0000
@@ -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 @@
unsigned h;
int chainlen;
- if (t == NULL || t->buckets == NULL)
- return NULL;
-
h = hash(key, NULL);
chainlen = 0;
#ifdef DEBUG_HASH_LOOKUP
Home |
Main Index |
Thread Index |
Old Index