ath6kl: fix uninitialized warning in ath6kl_process_uapsdq()
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / ath / ath6kl / txrx.c
index 91bbc1ffa493ca4a7d84a9c8887599c40f6ac4ee..dd6337142603163776e55606a0bb4eef60fe87d7 100644 (file)
@@ -85,7 +85,7 @@ static bool ath6kl_process_uapsdq(struct ath6kl_sta *conn,
        struct ath6kl *ar = vif->ar;
        bool is_apsdq_empty = false;
        struct ethhdr *datap = (struct ethhdr *) skb->data;
-       u8 up, traffic_class, *ip_hdr;
+       u8 up = 0, traffic_class, *ip_hdr;
        u16 ether_type;
        struct ath6kl_llc_snap_hdr *llc_hdr;
 
@@ -122,8 +122,6 @@ static bool ath6kl_process_uapsdq(struct ath6kl_sta *conn,
                if (ether_type == IP_ETHERTYPE)
                        up = ath6kl_wmi_determine_user_priority(
                                                        ip_hdr, 0);
-       } else {
-               up = 0;
        }
 
        traffic_class = ath6kl_wmi_get_traffic_class(up);