diff options
| author | SaidiReddy Yenuga <saidir@codeaurora.org> | 2016-12-15 18:55:04 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-12-19 04:19:36 -0800 |
| commit | 5e0bb60e2a87fa69407a768ffa2a1a2fa59d05b2 (patch) | |
| tree | 066507e41fee7dfd9aa1a1def484966f2e693c38 | |
| parent | 021af87a6ea0e123aea3d742d5f74c76a4985f47 (diff) | |
qcacld-3.0: Remove NULL check in get Tx power API
Adapter can be NULL and accessing it result in crash
Remove NULL check for adapter to avoid crash
CRs-Fixed: 1094603
Change-Id: I1c7efdfeb7829640cef740f873cb367befd810c9
| -rw-r--r-- | core/hdd/src/wlan_hdd_power.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index 6bf454143459..9576503586c3 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -2357,11 +2357,6 @@ static int __wlan_hdd_cfg80211_get_txpower(struct wiphy *wiphy, return status; } - if (!adapter) { - hdd_err("adapter is NULL"); - return -ENOENT; - } - /* Validate adapter sessionId */ if (wlan_hdd_validate_session_id(adapter->sessionId)) { hdd_err("invalid session id: %d", adapter->sessionId); |
