wifi: ath12k: Fix uninitialized use of ret in ath12k_mac_allocate()
[linux-2.6-microblaze.git] / drivers / net / wireless / ath / ath12k / mac.c
index a3b002d..a737a09 100644 (file)
@@ -8302,6 +8302,7 @@ int ath12k_mac_allocate(struct ath12k_base *ab)
                if (!ah) {
                        ath12k_warn(ab, "failed to allocate mac80211 hw device for hw_idx %d\n",
                                    i);
+                       ret = -ENOMEM;
                        goto err;
                }