Skip to content

Commit 5d338e9

Browse files
committed
[nrf fromtree] drivers: nrfwifi: Fix label name
The label is used for both positive and negative cases, so, should be called "out". Signed-off-by: Chaitanya Tata <[email protected]> (cherry picked from commit 7d696f5)
1 parent 736056e commit 5d338e9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

drivers/wifi/nrfwifi/src/fmac_main.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -320,27 +320,27 @@ int nrf_wifi_reg_domain(const struct device *dev, struct wifi_reg_domain *reg_do
320320
k_mutex_lock(&reg_lock, K_FOREVER);
321321

322322
if (!dev || !reg_domain) {
323-
goto err;
323+
goto out;
324324
}
325325

326326
vif_ctx_zep = dev->data;
327327

328328
if (!vif_ctx_zep) {
329329
LOG_ERR("%s: vif_ctx_zep is NULL", __func__);
330-
goto err;
330+
goto out;
331331
}
332332

333333
rpu_ctx_zep = vif_ctx_zep->rpu_ctx_zep;
334334

335335
if (!rpu_ctx_zep) {
336336
LOG_ERR("%s: rpu_ctx_zep is NULL", __func__);
337-
goto err;
337+
goto out;
338338
}
339339

340340
fmac_dev_ctx = rpu_ctx_zep->rpu_ctx;
341341
if (!fmac_dev_ctx) {
342342
LOG_ERR("%s: fmac_dev_ctx is NULL", __func__);
343-
goto err;
343+
goto out;
344344
}
345345

346346
#ifdef CONFIG_NRF70_SCAN_ONLY
@@ -352,26 +352,26 @@ int nrf_wifi_reg_domain(const struct device *dev, struct wifi_reg_domain *reg_do
352352
status = nrf_wifi_fmac_set_reg(fmac_dev_ctx, &reg_domain_info);
353353
if (status != NRF_WIFI_STATUS_SUCCESS) {
354354
LOG_ERR("%s: Failed to set regulatory domain", __func__);
355-
goto err;
355+
goto out;
356356
}
357357

358-
goto err;
358+
goto out;
359359
}
360360
#endif
361361
if (reg_domain->oper != WIFI_MGMT_GET) {
362362
LOG_ERR("%s: Invalid operation: %d", __func__, reg_domain->oper);
363-
goto err;
363+
goto out;
364364
}
365365

366366
if (!reg_domain->chan_info) {
367367
LOG_ERR("%s: Invalid regulatory info (NULL)\n", __func__);
368-
goto err;
368+
goto out;
369369
}
370370

371371
status = nrf_wifi_fmac_get_reg(fmac_dev_ctx, &reg_domain_info);
372372
if (status != NRF_WIFI_STATUS_SUCCESS) {
373373
LOG_ERR("%s: Failed to get regulatory domain", __func__);
374-
goto err;
374+
goto out;
375375
}
376376

377377
memcpy(reg_domain->country_code, reg_domain_info.alpha2, WIFI_COUNTRY_CODE_LEN);
@@ -388,7 +388,7 @@ int nrf_wifi_reg_domain(const struct device *dev, struct wifi_reg_domain *reg_do
388388
}
389389

390390
ret = 0;
391-
err:
391+
out:
392392
k_mutex_unlock(&reg_lock);
393393
return ret;
394394
}

0 commit comments

Comments
 (0)