if (IS_ERR_OR_NULL(ar->debug.debugfs_phy)) {
                if (IS_ERR(ar->debug.debugfs_phy))
                        return PTR_ERR(ar->debug.debugfs_phy);
-               else
-                       return -ENOMEM;
+
+               return -ENOMEM;
        }
 
        INIT_DELAYED_WORK(&ar->debug.htt_stats_dwork,
 
                if (last_msdu) {
                        msdu->next = NULL;
                        break;
-               } else {
-                       next = ath10k_htt_rx_netbuf_pop(htt);
-                       msdu->next = next;
-                       msdu = next;
                }
+
+               next = ath10k_htt_rx_netbuf_pop(htt);
+               msdu->next = next;
+               msdu = next;
        }
        *tail_msdu = msdu;
 
 
        if (fmt == RX_MSDU_DECAP_RAW)
                return (void *)skb->data;
-       else
-               return (void *)skb->data - RX_HTT_HDR_STATUS_LEN;
+
+       return (void *)skb->data - RX_HTT_HDR_STATUS_LEN;
 }
 
 /* This function only applies for first msdu in an msdu chain */
 
 
        if (should_start)
                return ath10k_monitor_start(ar);
-       else
-               return ath10k_monitor_stop(ar);
+
+       return ath10k_monitor_stop(ar);
 }
 
 static int ath10k_recalc_rtscts_prot(struct ath10k_vif *arvif)
                        continue;
                else if (mask->control[band].ht_mcs[i] == 0x00)
                        break;
-               else
-                       return false;
+
+               return false;
        }
 
        ht_nss = i;
                        continue;
                else if (mask->control[band].vht_mcs[i] == 0x0000)
                        break;
-               else
-                       return false;
+
+               return false;
        }
 
        vht_nss = i;
 
 
        if (ar_pci->num_msi_intrs > 1)
                return "msi-x";
-       else if (ar_pci->num_msi_intrs == 1)
+
+       if (ar_pci->num_msi_intrs == 1)
                return "msi";
-       else
-               return "legacy";
+
+       return "legacy";
 }
 
 static int __ath10k_pci_rx_post_buf(struct ath10k_pci_pipe *pipe)