Remove local error variable, which leads to hiding error from return

value.

PR:		kern/81371
Submitted by:	Wojciech A. Koszek
MFC after:	1 week
This commit is contained in:
Gleb Smirnoff 2005-05-23 13:49:49 +00:00
parent a09c9f01cd
commit 2dc628b54a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146545

View File

@ -283,7 +283,6 @@ ngc_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *addr,
if ((type = ng_findtype(mkp->type)) == NULL) {
char filename[NG_TYPESIZ + 3];
linker_file_t lf;
int error;
/* Not found, try to load it as a loadable module. */
snprintf(filename, sizeof(filename), "ng_%s",