From 6619e909940ebd346a6ca152b93d4f622cb0466b Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Thu, 18 Feb 2010 22:10:55 +0000 Subject: [PATCH] Simplify code a bit. --- sys/nfsclient/nfs_kdtrace.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/nfsclient/nfs_kdtrace.c b/sys/nfsclient/nfs_kdtrace.c index fc7e4469b963..3a478e0abf26 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