Commit a2a120a9 authored by Luca Coelho's avatar Luca Coelho

iwlwifi: remove unnecessary goto out in iwl_parse_nvm_mcc_info()

This goto out was unnecessary because the out label was immediately
below it.  Remove it.
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 78d722b1
......@@ -1193,10 +1193,8 @@ iwl_parse_nvm_mcc_info(struct device *dev, const struct iwl_cfg *cfg,
*/
copy_rd = kmemdup(regd, struct_size(regd, reg_rules, valid_rules),
GFP_KERNEL);
if (!copy_rd) {
if (!copy_rd)
copy_rd = ERR_PTR(-ENOMEM);
goto out;
}
out:
kfree(regdb_ptrs);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment