Module Name:    src
Committed By:   skrll
Date:           Thu Jul 27 08:10:41 UTC 2017

Modified Files:
        src/sys/arch/arm/arm32: pmap.c

Log Message:
Remove redundant test - the compiler realised anyway as we get same binary
output


To generate a diff of this commit:
cvs rdiff -u -r1.350 -r1.351 src/sys/arch/arm/arm32/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/arm32/pmap.c
diff -u src/sys/arch/arm/arm32/pmap.c:1.350 src/sys/arch/arm/arm32/pmap.c:1.351
--- src/sys/arch/arm/arm32/pmap.c:1.350	Mon Jul 10 09:30:58 2017
+++ src/sys/arch/arm/arm32/pmap.c	Thu Jul 27 08:10:41 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.c,v 1.350 2017/07/10 09:30:58 skrll Exp $	*/
+/*	$NetBSD: pmap.c,v 1.351 2017/07/27 08:10:41 skrll Exp $	*/
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -217,7 +217,7 @@
 
 #include <arm/locore.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.350 2017/07/10 09:30:58 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.351 2017/07/27 08:10:41 skrll Exp $");
 
 //#define PMAP_DEBUG
 #ifdef PMAP_DEBUG
@@ -6417,8 +6417,7 @@ pmap_alloc_specials(vaddr_t *availp, int
 		if (l2b == NULL)
 			panic("pmap_alloc_specials: no l2b for 0x%lx", va);
 
-		if (ptep)
-			*ptep = &l2b->l2b_kva[l2pte_index(va)];
+		*ptep = &l2b->l2b_kva[l2pte_index(va)];
 	}
 
 	*vap = va;

Reply via email to