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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298733
@ -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 New Issue
Block a user