iwlwifi: remove unnecessary goto out in iwl_parse_nvm_mcc_info()
authorLuca Coelho <luciano.coelho@intel.com>
Thu, 14 Feb 2019 06:59:27 +0000 (08:59 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 22 Mar 2019 10:59:42 +0000 (12:59 +0200)
This goto out was unnecessary because the out label was immediately
below it.  Remove it.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c

index 2d11fc0e351ff02237061e78f394fa674b77ca29..e8ee510fdd4b27f859861eb2880bfb7ddbb99523 100644 (file)
@@ -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);