From 5b49b507f5bdd3ea111dd058a2fe96760f7175aa Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 23 May 2018 21:21:27 +0000 Subject: [PATCH] Simplify to avoid pointless null pointer arithmetic. --- lib/libc/stdlib/merge.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/libc/stdlib/merge.c b/lib/libc/stdlib/merge.c index 499999f429b2..34e1a3d571e7 100644 --- a/lib/libc/stdlib/merge.c +++ b/lib/libc/stdlib/merge.c @@ -1,4 +1,4 @@ -/* $NetBSD: merge.c,v 1.15 2017/08/12 01:10:04 ginsbach Exp $ */ +/* $NetBSD: merge.c,v 1.16 2018/05/23 21:21:27 joerg Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "from: @(#)merge.c 8.2 (Berkeley) 2/14/94"; #else -__RCSID("$NetBSD: merge.c,v 1.15 2017/08/12 01:10:04 ginsbach Exp $"); +__RCSID("$NetBSD: merge.c,v 1.16 2018/05/23 21:21:27 joerg Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -101,8 +101,7 @@ static void insertionsort(u_char *, size_t, size_t, */ /* Assumption: PSIZE is a power of 2. */ #define EVAL(p) ((u_char **)(void *) \ - ((u_char *)0 + \ - (((u_char *)(void *)(p) + PSIZE - 1 - (u_char *) 0) & ~(PSIZE - 1)))) + (((u_char *)(void *)(p) + PSIZE - 1 - (u_char *) 0) & ~(PSIZE - 1))) /* * Arguments are as for qsort.