mirror of
https://github.com/opnsense/src.git
synced 2026-02-19 02:30:08 -05:00
Revert r333365
Even though we don't use it, it appears something else requires it to be != 0 to work. This breaks tftp boot in loader.efi, so revert until that can be sorted out.
This commit is contained in:
parent
ff8f1e8332
commit
09001b5c78
1 changed files with 4 additions and 0 deletions
|
|
@ -190,6 +190,7 @@ net_open(struct open_file *f, ...)
|
|||
|
||||
}
|
||||
netdev_opens++;
|
||||
f->f_devdata = &netdev_sock;
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
|
@ -201,6 +202,9 @@ net_close(struct open_file *f)
|
|||
if (debug)
|
||||
printf("net_close: opens=%d\n", netdev_opens);
|
||||
#endif
|
||||
|
||||
f->f_devdata = NULL;
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue