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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146545
@ -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