diff options
author | kib <kib@FreeBSD.org> | 2016-11-09 17:07:45 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-11-09 17:07:45 +0000 |
commit | f7212ea56cac75ffb30317c98e0182e071e2a29b (patch) | |
tree | 76bade53270fe4aba560c163dd07343efc42e74a /sys/kern/vfs_lookup.c | |
parent | aad00d43fe8a0c226daa882ebb96bf3dafdcc0f7 (diff) | |
download | FreeBSD-src-f7212ea56cac75ffb30317c98e0182e071e2a29b.zip FreeBSD-src-f7212ea56cac75ffb30317c98e0182e071e2a29b.tar.gz |
MFC r308211:
Remove tautological casts.
Diffstat (limited to 'sys/kern/vfs_lookup.c')
-rw-r--r-- | sys/kern/vfs_lookup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index 123ef54..7acd2be 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -164,11 +164,11 @@ namei(struct nameidata *ndp) if ((cnp->cn_flags & HASBUF) == 0) cnp->cn_pnbuf = uma_zalloc(namei_zone, M_WAITOK); if (ndp->ni_segflg == UIO_SYSSPACE) - error = copystr(ndp->ni_dirp, cnp->cn_pnbuf, - MAXPATHLEN, (size_t *)&ndp->ni_pathlen); + error = copystr(ndp->ni_dirp, cnp->cn_pnbuf, MAXPATHLEN, + &ndp->ni_pathlen); else - error = copyinstr(ndp->ni_dirp, cnp->cn_pnbuf, - MAXPATHLEN, (size_t *)&ndp->ni_pathlen); + error = copyinstr(ndp->ni_dirp, cnp->cn_pnbuf, MAXPATHLEN, + &ndp->ni_pathlen); /* * Don't allow empty pathnames. |