net: wireless: bcmdhd: Skip dhd_bus_stop() if bus is already down

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
Dmitry Shmidt
2011-11-04 11:08:37 -07:00
parent 19179ebdb3
commit 5d94d7a3b7

View File

@@ -1744,7 +1744,8 @@ dhd_dpc_thread(void *data)
DHD_OS_WAKE_UNLOCK(&dhd->pub);
}
} else {
dhd_bus_stop(dhd->pub.bus, TRUE);
if (dhd->pub.up)
dhd_bus_stop(dhd->pub.bus, TRUE);
DHD_OS_WAKE_UNLOCK(&dhd->pub);
}
}