Remove unused variable.

Found with:     Coverity Prevent(tm)
CID:            3682
This commit is contained in:
Alexander Motin 2008-11-22 16:55:55 +00:00
parent b023993708
commit 7599a9b90f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185183

View File

@ -259,9 +259,8 @@ ngc_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *addr,
if (msg->header.typecookie == NGM_GENERIC_COOKIE &&
msg->header.cmd == NGM_MKPEER) {
struct ngm_mkpeer *const mkp = (struct ngm_mkpeer *) msg->data;
struct ng_type *type;
if ((type = ng_findtype(mkp->type)) == NULL) {
if (ng_findtype(mkp->type) == NULL) {
char filename[NG_TYPESIZ + 3];
int fileid;
@ -275,7 +274,7 @@ ngc_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *addr,
}
/* See if type has been loaded successfully. */
if ((type = ng_findtype(mkp->type)) == NULL) {
if (ng_findtype(mkp->type) == NULL) {
free(msg, M_NETGRAPH_MSG);
(void)kern_kldunload(curthread, fileid,
LINKER_UNLOAD_NORMAL);