Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Feb 2020 05:23:34 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r357491 - head/sys/compat/linux
Message-ID:  <202002040523.0145NYnd034311@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dchagin
Date: Tue Feb  4 05:23:34 2020
New Revision: 357491
URL: https://svnweb.freebsd.org/changeset/base/357491

Log:
  linux_to_native_clockid() properly initializes nwhich variable (or return error),
  so don't initialize nwhich in declaration and remove stale comment from r161304.
  
  Reviewed by:		emaste
  Differential Revision:	https://reviews.freebsd.org/D23339
  MFC after:		2 weeks

Modified:
  head/sys/compat/linux/linux_time.c

Modified: head/sys/compat/linux/linux_time.c
==============================================================================
--- head/sys/compat/linux/linux_time.c	Tue Feb  4 04:29:54 2020	(r357490)
+++ head/sys/compat/linux/linux_time.c	Tue Feb  4 05:23:34 2020	(r357491)
@@ -253,7 +253,7 @@ linux_clock_gettime(struct thread *td, struct linux_cl
 	struct thread *targettd;
 	struct proc *p;
 	int error, clockwhich;
-	clockid_t nwhich = 0;	/* XXX: GCC */
+	clockid_t nwhich;
 	pid_t pid;
 	lwpid_t tid;
 
@@ -382,7 +382,7 @@ linux_clock_settime(struct thread *td, struct linux_cl
 	struct timespec ts;
 	struct l_timespec lts;
 	int error;
-	clockid_t nwhich = 0;	/* XXX: GCC */
+	clockid_t nwhich;
 
 	LIN_SDT_PROBE2(time, linux_clock_settime, entry, args->which, args->tp);
 
@@ -422,7 +422,7 @@ linux_clock_getres(struct thread *td, struct linux_clo
 	struct timespec ts;
 	struct l_timespec lts;
 	int error, clockwhich;
-	clockid_t nwhich = 0;	/* XXX: GCC */
+	clockid_t nwhich;
 	pid_t pid;
 	lwpid_t tid;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002040523.0145NYnd034311>