diff options
author | pjd <pjd@FreeBSD.org> | 2010-02-18 22:10:55 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-02-18 22:10:55 +0000 |
commit | fcd2271461cbe74921e701eb38a50ba5ef3eb2b5 (patch) | |
tree | 788b72609452d37210d1f1481e70a794952ade45 /sys/nfsclient | |
parent | 9e111a74ff9fb03dd6284d6174940d9e6b191015 (diff) | |
download | FreeBSD-src-fcd2271461cbe74921e701eb38a50ba5ef3eb2b5.zip FreeBSD-src-fcd2271461cbe74921e701eb38a50ba5ef3eb2b5.tar.gz |
Simplify code a bit.
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_kdtrace.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/nfsclient/nfs_kdtrace.c b/sys/nfsclient/nfs_kdtrace.c index fc7e446..3a478e0 100644 --- a/sys/nfsclient/nfs_kdtrace.c +++ b/sys/nfsclient/nfs_kdtrace.c @@ -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 |