kern/62684: sys/kern/vfs_init.c:vfs_add_vnodeops() has not needed
variable
Andrey Simonenko
simon at comsys.ntu-kpi.kiev.ua
Wed Feb 11 03:40:10 PST 2004
>Number: 62684
>Category: kern
>Synopsis: sys/kern/vfs_init.c:vfs_add_vnodeops() has not needed variable
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Feb 11 03:40:09 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Andrey Simonenko
>Release: FreeBSD 4.x and 5.x
>Organization:
>Environment:
>Description:
Function vfs_add_vnodeops() in sys/kern/vfs_init.c has not needed
variable opv_desc_vector. It is used only once:
/* See if we have turned up a new vnode op desc */
opv_desc_vector = *(opv->opv_desc_vector_p);
and then it is not used in this function any more. This variable
was introduced in 1.38 and it wasn't used in vfs_add_vnodeops() (and
in vfs_rm_vnodeops()) as well.
>How-To-Repeat:
>Fix:
I suppose that this variable can be removed from vfs_add_vnodeops(),
at least, as I understand, it does nothing.
>Release-Note:
>Audit-Trail:
>Unformatted:
To: FreeBSD-gnats-submit at freebsd.org
From: Andrey Simonenko <simon at comsys.ntu-kpi.kiev.ua>
Reply-To: Andrey Simonenko <simon at comsys.ntu-kpi.kiev.ua>
Cc:
X-send-pr-version: 3.113
X-GNATS-Notify:
More information about the freebsd-bugs
mailing list