mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
qcacld-3.0: Remove unnecessary net_device validation
Currently net_device is being validated inside the hdd_for_each_adapter_dev_held_safe loop. This is not required as hdd_for_each_adapter_dev_held_safe will hold the reference for net_device and prevent it from being deleted. So net_device validation is not required inside hdd_for_each_adapter_dev_held_safe loop. Change-Id: Id7e78748b80e7a3bbe50fee43a28fd0d48bd6856 CRs-Fixed: 2812716
This commit is contained in:
parent
e40af9cc7c
commit
38bcc40811
1 changed files with 1 additions and 2 deletions
|
|
@ -14271,8 +14271,7 @@ static void hdd_state_info_dump(char **buf_ptr, uint16_t *size)
|
|||
hdd_ctx->is_scheduler_suspended);
|
||||
|
||||
hdd_for_each_adapter_dev_held_safe(hdd_ctx, adapter, next_adapter) {
|
||||
if (adapter->dev)
|
||||
len += scnprintf(buf + len, *size - len,
|
||||
len += scnprintf(buf + len, *size - len,
|
||||
"\n device name: %s", adapter->dev->name);
|
||||
len += scnprintf(buf + len, *size - len,
|
||||
"\n device_mode: %d", adapter->device_mode);
|
||||
|
|
|
|||
Loading…
Reference in a new issue