mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 01:59:38 -04:00
ipdivert: Remove unnecessary and incorrectly typed variable.
In principle n is only used to carry a copy of ipi_count, which is unsigned, in the non-VIMAGE case, however ipi_count can be used directly so it is not needed at all. Removing it makes things look cleaner.
This commit is contained in:
parent
b114da42af
commit
a5b50fbc20
1 changed files with 1 additions and 5 deletions
|
|
@ -765,9 +765,6 @@ static int
|
|||
div_modevent(module_t mod, int type, void *unused)
|
||||
{
|
||||
int err = 0;
|
||||
#ifndef VIMAGE
|
||||
int n;
|
||||
#endif
|
||||
|
||||
switch (type) {
|
||||
case MOD_LOAD:
|
||||
|
|
@ -808,8 +805,7 @@ div_modevent(module_t mod, int type, void *unused)
|
|||
* we destroy the lock.
|
||||
*/
|
||||
INP_INFO_WLOCK(&V_divcbinfo);
|
||||
n = V_divcbinfo.ipi_count;
|
||||
if (n != 0) {
|
||||
if (V_divcbinfo.ipi_count != 0) {
|
||||
err = EBUSY;
|
||||
INP_INFO_WUNLOCK(&V_divcbinfo);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue