Date: Thu, 18 Feb 2010 22:10:55 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r204063 - head/sys/nfsclient Message-ID: <201002182210.o1IMAtI7092781@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pjd Date: Thu Feb 18 22:10:55 2010 New Revision: 204063 URL: http://svn.freebsd.org/changeset/base/204063 Log: Simplify code a bit. Modified: head/sys/nfsclient/nfs_kdtrace.c Modified: head/sys/nfsclient/nfs_kdtrace.c ============================================================================== --- head/sys/nfsclient/nfs_kdtrace.c Thu Feb 18 21:21:54 2010 (r204062) +++ head/sys/nfsclient/nfs_kdtrace.c Thu Feb 18 22:10:55 2010 (r204063) @@ -500,15 +500,11 @@ dtnfsclient_load(void *dummy) static int dtnfsclient_unload() { - int error = 0; dtrace_nfsclient_nfs23_start_probe = NULL; dtrace_nfsclient_nfs23_done_probe = NULL; - if ((error = dtrace_unregister(dtnfsclient_id)) != 0) - return (error); - - return (error); + return (dtrace_unregister(dtnfsclient_id)); } static int
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002182210.o1IMAtI7092781>