Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/kernfs Remove unneeded strlen() call in KFShostna...
details: https://anonhg.NetBSD.org/src/rev/26f7aa2388f9
branches: trunk
changeset: 751039:26f7aa2388f9
user: njoly <njoly%NetBSD.org@localhost>
date: Fri Jan 22 22:46:00 2010 +0000
description:
Remove unneeded strlen() call in KFShostname case.
diffstat:
sys/miscfs/kernfs/kernfs_vnops.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 32192d8034c6 -r 26f7aa2388f9 sys/miscfs/kernfs/kernfs_vnops.c
--- a/sys/miscfs/kernfs/kernfs_vnops.c Fri Jan 22 20:43:48 2010 +0000
+++ b/sys/miscfs/kernfs/kernfs_vnops.c Fri Jan 22 22:46:00 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernfs_vnops.c,v 1.139 2010/01/08 11:35:11 pooka Exp $ */
+/* $NetBSD: kernfs_vnops.c,v 1.140 2010/01/22 22:46:00 njoly Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kernfs_vnops.c,v 1.139 2010/01/08 11:35:11 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kernfs_vnops.c,v 1.140 2010/01/22 22:46:00 njoly Exp $");
#ifdef _KERNEL_OPT
#include "opt_ipsec.h"
@@ -458,7 +458,6 @@
memcpy(*bufp, cp, xlen);
(*bufp)[xlen] = '\n';
(*bufp)[xlen+1] = '\0';
- len = strlen(*bufp);
break;
}
Home |
Main Index |
Thread Index |
Old Index