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:
parent
a09c9f01cd
commit
2dc628b54a
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user