svn commit: r314320 - head/lib/libc/x86/sys

Mariusz Zaborski oshogbo at FreeBSD.org
Sun Feb 26 22:15:40 UTC 2017


Author: oshogbo
Date: Sun Feb 26 22:15:39 2017
New Revision: 314320
URL: https://svnweb.freebsd.org/changeset/base/314320

Log:
  Remove unneeded variable initialization from r314319.
  
  Pointed out by:	kib

Modified:
  head/lib/libc/x86/sys/__vdso_gettc.c

Modified: head/lib/libc/x86/sys/__vdso_gettc.c
==============================================================================
--- head/lib/libc/x86/sys/__vdso_gettc.c	Sun Feb 26 22:07:26 2017	(r314319)
+++ head/lib/libc/x86/sys/__vdso_gettc.c	Sun Feb 26 22:15:39 2017	(r314320)
@@ -146,7 +146,6 @@ __vdso_init_hpet(uint32_t u)
 	if (old_map != NULL)
 		return;
 
-	mode = 0;
 	if (cap_getmode(&mode) == 0 && mode != 0)
 		goto fail;
 
@@ -186,7 +185,6 @@ __vdso_init_hyperv_tsc(void)
 	int fd;
 	unsigned int mode;
 
-	mode = 0;
 	if (cap_getmode(&mode) == 0 && mode != 0)
 		goto fail;
 


More information about the svn-src-head mailing list