qcacld-3.0: skip unnecessary operations when debug domain transition aborted
If system reboot comes when starting wlan modules, it aborts
debug domain transition, and also the following initializtions
of the modules.
Then it calls cds_shutdown_notifier_purge, hdd_check_for_leaks and
hdd_debug_domain_set to clean up and fall back, however,
cds_shutdown_notifier_purge is unnecessary, since no shutdown_notifier
is registered at this point;
hdd_check_for_leaks here only checks the leaks for active debug domain
in previous design, but it tries to check the leaks for init debug
domain in this case, which is wrong at this point and causes false
alarm of leaks.
hdd_debug_domain_set is redundant since no debug domain transition
happens in this case.
To fix it, skip cds_shutdown_notifier_purge, hdd_check_for_leaks
and hdd_debug_domain_set if debug domain transition is aborted when
starting modules.
Change-Id: I19818649f272b6375a89dc3e493e1edd8ed87607
CRs-Fixed: 3498383