Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Aug 2020 14:17:25 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r364687 - stable/12/sys/compat/linux
Message-ID:  <202008241417.07OEHPVC092379@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Mon Aug 24 14:17:25 2020
New Revision: 364687
URL: https://svnweb.freebsd.org/changeset/base/364687

Log:
  MFC r357491 by dchagin:
  
  linux_to_native_clockid() properly initializes nwhich variable (or return error),
  so don't initialize nwhich in declaration and remove stale comment from r161304.

Modified:
  stable/12/sys/compat/linux/linux_time.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/compat/linux/linux_time.c
==============================================================================
--- stable/12/sys/compat/linux/linux_time.c	Mon Aug 24 14:13:20 2020	(r364686)
+++ stable/12/sys/compat/linux/linux_time.c	Mon Aug 24 14:17:25 2020	(r364687)
@@ -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?202008241417.07OEHPVC092379>