#ifndef NET_MPSAFE
mutex_enter(softnet_lock);
@@ -1285,10 +1286,6 @@
* We have transmitted sufficient number of DAD packets.
* See what we've got.
*/
- int duplicate;
-
- duplicate = 0;
-
if (dp->dad_na_icount) {
/*
* the check is in nd6_dad_na_input(),
@@ -1305,7 +1302,6 @@
if (duplicate) {
/* (*dp) will be freed in nd6_dad_duplicated() */
dp = NULL;
- nd6_dad_duplicated(ifa);
} else {
/*
* We are done with DAD. No NA came, no NS came.
@@ -1328,6 +1324,10 @@