net: wireless: bcm4329: 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:10:04 -07:00
parent 5d94d7a3b7
commit 3f4f629fc8

View File

@ -1519,7 +1519,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);
}
}