|
@@ -57,10 +57,8 @@ __hdd_sysfs_dl_loglevel_store(struct net_device *net_dev,
|
|
|
uint32_t value;
|
|
|
int ret;
|
|
|
|
|
|
- if (hdd_validate_adapter(adapter)) {
|
|
|
- hdd_err_rl("adapter validate fail");
|
|
|
+ if (hdd_validate_adapter(adapter))
|
|
|
return -EINVAL;
|
|
|
- }
|
|
|
|
|
|
hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
ret = wlan_hdd_validate_context(hdd_ctx);
|
|
@@ -130,10 +128,8 @@ __hdd_sysfs_dl_mod_loglevel_store(struct net_device *net_dev,
|
|
|
uint32_t value;
|
|
|
int ret;
|
|
|
|
|
|
- if (hdd_validate_adapter(adapter)) {
|
|
|
- hdd_err_rl("adapter validate fail");
|
|
|
+ if (hdd_validate_adapter(adapter))
|
|
|
return -EINVAL;
|
|
|
- }
|
|
|
|
|
|
hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
ret = wlan_hdd_validate_context(hdd_ctx);
|
|
@@ -203,10 +199,8 @@ __hdd_sysfs_dl_modoff_store(struct net_device *net_dev,
|
|
|
uint32_t value;
|
|
|
int ret;
|
|
|
|
|
|
- if (hdd_validate_adapter(adapter)) {
|
|
|
- hdd_err_rl("adapter validate fail");
|
|
|
+ if (hdd_validate_adapter(adapter))
|
|
|
return -EINVAL;
|
|
|
- }
|
|
|
|
|
|
hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
ret = wlan_hdd_validate_context(hdd_ctx);
|
|
@@ -276,10 +270,8 @@ __hdd_sysfs_dl_modon_store(struct net_device *net_dev,
|
|
|
uint32_t value;
|
|
|
int ret;
|
|
|
|
|
|
- if (hdd_validate_adapter(adapter)) {
|
|
|
- hdd_err_rl("adapter validate fail");
|
|
|
+ if (hdd_validate_adapter(adapter))
|
|
|
return -EINVAL;
|
|
|
- }
|
|
|
|
|
|
hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
ret = wlan_hdd_validate_context(hdd_ctx);
|
|
@@ -349,10 +341,8 @@ __hdd_sysfs_dl_report_store(struct net_device *net_dev,
|
|
|
uint32_t value;
|
|
|
int ret;
|
|
|
|
|
|
- if (hdd_validate_adapter(adapter)) {
|
|
|
- hdd_err_rl("adapter validate fail");
|
|
|
+ if (hdd_validate_adapter(adapter))
|
|
|
return -EINVAL;
|
|
|
- }
|
|
|
|
|
|
hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
ret = wlan_hdd_validate_context(hdd_ctx);
|
|
@@ -422,10 +412,8 @@ __hdd_sysfs_dl_type_store(struct net_device *net_dev,
|
|
|
uint32_t value;
|
|
|
int ret;
|
|
|
|
|
|
- if (hdd_validate_adapter(adapter)) {
|
|
|
- hdd_err_rl("adapter validate fail");
|
|
|
+ if (hdd_validate_adapter(adapter))
|
|
|
return -EINVAL;
|
|
|
- }
|
|
|
|
|
|
hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
ret = wlan_hdd_validate_context(hdd_ctx);
|
|
@@ -495,10 +483,8 @@ __hdd_sysfs_dl_vapoff_store(struct net_device *net_dev,
|
|
|
uint32_t value;
|
|
|
int ret;
|
|
|
|
|
|
- if (hdd_validate_adapter(adapter)) {
|
|
|
- hdd_err_rl("adapter validate fail");
|
|
|
+ if (hdd_validate_adapter(adapter))
|
|
|
return -EINVAL;
|
|
|
- }
|
|
|
|
|
|
hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
ret = wlan_hdd_validate_context(hdd_ctx);
|
|
@@ -568,10 +554,8 @@ __hdd_sysfs_dl_vapon_store(struct net_device *net_dev,
|
|
|
uint32_t value;
|
|
|
int ret;
|
|
|
|
|
|
- if (hdd_validate_adapter(adapter)) {
|
|
|
- hdd_err_rl("adapter validate fail");
|
|
|
+ if (hdd_validate_adapter(adapter))
|
|
|
return -EINVAL;
|
|
|
- }
|
|
|
|
|
|
hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
ret = wlan_hdd_validate_context(hdd_ctx);
|